Skip to content

Commit 8fc39a3

Browse files
authored
build: Simplify Gradle Reckon setup (#132)
1 parent c8633e8 commit 8fc39a3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

settings.gradle.kts

+9-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pluginManagement {
77

88
plugins {
99
id("com.gradle.develocity") version ("3.19")
10-
id("org.ajoberstar.reckon.settings") version ("0.18.2")
10+
id("org.ajoberstar.reckon.settings") version ("0.19.1")
1111
}
1212

1313
rootProject.name = "kotlin-multiplatform-diff"
@@ -19,12 +19,6 @@ dependencyResolutionManagement {
1919
}
2020
}
2121

22-
extensions.configure<org.ajoberstar.reckon.gradle.ReckonExtension> {
23-
setDefaultInferredScope("minor")
24-
scopeFromProp()
25-
stageFromProp("alpha", "rc", "final") // version string will be based on last commit; when checking out a tag, that
26-
}
27-
2822
develocity {
2923
buildScan {
3024
val isCI = System.getenv("CI").toBoolean()
@@ -39,3 +33,11 @@ develocity {
3933
}
4034
}
4135
}
36+
37+
reckon {
38+
setDefaultInferredScope("minor")
39+
setScopeCalc(calcScopeFromProp())
40+
41+
stages("alpha", "rc", "final")
42+
setStageCalc(calcStageFromProp())
43+
}

0 commit comments

Comments
 (0)