@muverse/core 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,12 +2,12 @@ import groovy.json.JsonOutput
|
|
|
2
2
|
import groovy.json.JsonGenerator
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* Checks for "<projectName>.version"
|
|
5
|
+
* Retrieves the qualified version property name for the project.
|
|
6
|
+
* Checks for properties in the order: "<projectName>.version", "<rootProjectName>.version", "version".
|
|
7
7
|
*/
|
|
8
8
|
fun Project.qualifiedVersionProperty(): String {
|
|
9
|
-
val candidates = listOf("${name}.version", "version")
|
|
10
|
-
return candidates.
|
|
9
|
+
val candidates = listOf("${name}.version", "${rootProject.name}.version", "version")
|
|
10
|
+
return candidates.first(::hasProperty)
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/**
|