diff --git a/build.gradle.kts b/build.gradle.kts index e635de64..b546079b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,22 +11,12 @@ buildscript { repositories { mavenCentral() } - - dependencies { - // Add our custom gradle plugin(s) to buildscript classpath (comes from github source) - // NOTE: buildscript classpath for the root project is the parent classloader for the subprojects, we - // only need to include it here, imports in subprojects will work automagically - classpath("aws.sdk.kotlin:build-plugins") { - version { - require("0.3.1") - } - } - } } plugins { id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2" alias(libs.plugins.kotlin.multiplatform) apply false + alias(libs.plugins.aws.kotlin.repo.tools.kmp) } allprojects { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6ff89a4a..20a38358 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,8 @@ [versions] kotlin-version = "1.9.21" +aws-kotlin-repo-tools-version = "0.3.2" + # libs crt-java-version = "0.29.1" coroutines-version = "1.7.3" @@ -38,3 +40,4 @@ mockserver-netty = { module = "org.mock-server:mockserver-netty", version.ref = [plugins] kotlin-multiplatform = {id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin-version" } +aws-kotlin-repo-tools-kmp = { id = "aws.sdk.kotlin.kmp", version.ref = "aws-kotlin-repo-tools-version" } diff --git a/settings.gradle.kts b/settings.gradle.kts index 68472acb..4cf4beae 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,13 +6,13 @@ pluginManagement { repositories { mavenCentral() gradlePluginPortal() - } -} - -sourceControl { - gitRepository(java.net.URI("https://github.com/awslabs/aws-kotlin-repo-tools.git")) { - producesModule("aws.sdk.kotlin:build-plugins") - producesModule("aws.sdk.kotlin:ktlint-rules") + maven { + name = "kotlinRepoTools" + url = java.net.URI("https://d2gys1nrxnjnyg.cloudfront.net/releases") + content { + includeGroupByRegex("""aws\.sdk\.kotlin.*""") + } + } } }