Browse Source

Usage sample with the Nokee version management plugin

Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
pull/329/head
Daniel Lacasse 2 years ago committed by Jannis Weis
parent
commit
2d59b6ed2d
No known key found for this signature in database
GPG Key ID: 7C9D8D4B558049AB
  1. 9
      buildSrc/build.gradle.kts
  2. 3
      buildSrc/settings.gradle.kts
  3. 4
      settings.gradle.kts

9
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 {

3
buildSrc/settings.gradle.kts

@ -0,0 +1,3 @@
plugins {
id("dev.nokee.nokee-version-management")
}

4
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) {

Loading…
Cancel
Save