File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,7 @@ repositories {
27
27
}
28
28
}
29
29
30
- kotlinDslPluginOptions {
31
- experimentalWarning.set(false )
32
- }
33
-
34
- val props = Properties ().apply {
30
+ val gradleProperties = Properties ().apply {
35
31
file(" ../gradle.properties" ).inputStream().use { load(it) }
36
32
}
37
33
@@ -41,7 +37,9 @@ fun version(target: String): String {
41
37
val snapshotVersion = properties[" kotlin_snapshot_version" ]
42
38
if (snapshotVersion != null ) return snapshotVersion.toString()
43
39
}
44
- return props.getProperty(" ${target} _version" )
40
+ val version = " ${target} _version"
41
+ // Read from CLI first, used in aggregate builds
42
+ return properties[version]?.let {" $it " } ? : gradleProperties.getProperty(version)
45
43
}
46
44
47
45
dependencies {
You can’t perform that action at this time.
0 commit comments