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 {
2727 }
2828}
2929
30- kotlinDslPluginOptions {
31- experimentalWarning.set(false )
32- }
33-
34- val props = Properties ().apply {
30+ val gradleProperties = Properties ().apply {
3531 file(" ../gradle.properties" ).inputStream().use { load(it) }
3632}
3733
@@ -41,7 +37,9 @@ fun version(target: String): String {
4137 val snapshotVersion = properties[" kotlin_snapshot_version" ]
4238 if (snapshotVersion != null ) return snapshotVersion.toString()
4339 }
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)
4543}
4644
4745dependencies {
You can’t perform that action at this time.
0 commit comments