11// Auto-detect version from Git tag (e.g., "v0.2.0" -> "0.2.0")
22fun getGitVersion (): String {
3- val process = Runtime .getRuntime().exec(" git describe --tags --abbrev=0" )
3+ val process = ProcessBuilder (" git" , " describe" , " --tags" , " --abbrev=0" )
4+ .redirectOutput(ProcessBuilder .Redirect .PIPE )
5+ .redirectError(ProcessBuilder .Redirect .PIPE )
6+ .start()
7+ process.waitFor()
48 val output = process.inputStream.bufferedReader().readText().trim()
59 val cleanVersion = output.removePrefix(" v" )
6- return if ( cleanVersion.isNotEmpty()) cleanVersion else " 0.0.1-SNAPSHOT"
10+ return cleanVersion.ifEmpty { " 0.0.1-SNAPSHOT" }
711}
812
913ext[" libVersion" ] = try {
@@ -14,13 +18,13 @@ ext["libVersion"] = try {
1418}
1519
1620plugins {
17- id(" com.android.library" ) version " 8.13.0 " apply false
18- id(" com.android.application" ) version " 8.13.0 " apply false
19- id(" org.jetbrains.kotlin.android" ) version " 2.0 .21" apply false
20- id(" org.jetbrains.kotlin.plugin.compose" ) version " 2.0 .21" apply false
21- id(" com.diffplug.spotless" ) version " 6.25 .0" apply false
21+ id(" com.android.library" ) version " 8.11.1 " apply false
22+ id(" com.android.application" ) version " 8.11.1 " apply false
23+ id(" org.jetbrains.kotlin.android" ) version " 2.2 .21" apply false
24+ id(" org.jetbrains.kotlin.plugin.compose" ) version " 2.2 .21" apply false
25+ id(" com.diffplug.spotless" ) version " 8.0 .0" apply false
2226 id(" org.jetbrains.dokka" ) version " 2.1.0" apply false
23- id(" com.gradleup.nmcp.aggregation" ) version " 0. 1.2"
27+ id(" com.gradleup.nmcp.aggregation" ) version " 1.2.0 "
2428}
2529
2630nmcpAggregation {
0 commit comments