From 2d59b6ed2ddaeb255ca8c228a920657023b0c62c Mon Sep 17 00:00:00 2001 From: Daniel Lacasse Date: Tue, 14 Jun 2022 21:37:08 +0200 Subject: [PATCH] Usage sample with the Nokee version management plugin Signed-off-by: Daniel Lacasse --- buildSrc/build.gradle.kts | 9 ++------- buildSrc/settings.gradle.kts | 3 +++ settings.gradle.kts | 4 ++++ 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 buildSrc/settings.gradle.kts diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 2c41db0b..58ba1948 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,22 +1,17 @@ -apply(from= "../gradle/loadProps.gradle.kts") - plugins { `kotlin-dsl` `java-gradle-plugin` } -val nokeeVersion = extra["nokee.version"] - dependencies { - implementation(platform("dev.nokee:nokee-gradle-plugins:$nokeeVersion")) + implementation(nokeeApi()) implementation(gradleApi()) } repositories { mavenCentral() gradlePluginPortal() - maven { url = uri("https://repo.nokee.dev/release") } - maven { url = uri("https://repo.nokee.dev/snapshot") } + nokee() } gradlePlugin { diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts new file mode 100644 index 00000000..65f093c0 --- /dev/null +++ b/buildSrc/settings.gradle.kts @@ -0,0 +1,3 @@ +plugins { + id("dev.nokee.nokee-version-management") +} diff --git a/settings.gradle.kts b/settings.gradle.kts index 179f7f9e..235dd8b6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -15,6 +15,10 @@ pluginManagement { } } +plugins { + id("dev.nokee.nokee-version-management") version("1.0.0") +} + dependencyResolutionManagement { versionCatalogs { fun VersionCatalogBuilder.idv(name: String, coordinates: String, versionRef: String = name) {