[build][kotlin-build-gradle-plugin] bump version 0.0.25

- kotlin native versioning support
- disable metadata
- fixes of drop 0 maintanence clause
- support for kotlin.native.enabled flag to switch on/off kotlin native build
- add mode to version generatation to dump version to resourse file
This commit is contained in:
Vasily Levchenko
2020-11-20 09:24:48 +01:00
parent 326ab1cd02
commit ec0f6b9ede
7 changed files with 151 additions and 95 deletions
@@ -53,10 +53,8 @@ data class CompilerVersionImpl(
append(major)
append('.')
append(minor)
if (maintenance != 0) {
append('.')
append(maintenance)
}
append('.')
append(maintenance)
if (milestone != -1) {
append("-M")
append(milestone)
@@ -10,12 +10,15 @@ import org.jetbrains.kotlin.konan.file.*
import java.lang.StringBuilder
fun <T> printMillisec(message: String, body: () -> T): T {
val result: T
val msec = measureTimeMillis {
result = body()
var msec = 0L
try {
msec = measureTimeMillis {
return body()
}
} finally {
println("$message: $msec msec")
}
println("$message: $msec msec")
return result
error("shouldn't happens")
}
fun profile(message: String, body: () -> Unit) = profileIf(