Try a build version-based version scheme.

This commit is contained in:
Logan Gorence 2021-12-22 05:52:10 +00:00
parent 728904fa23
commit b410fdf9e0
No known key found for this signature in database
GPG Key ID: 9743CEF10935949A

View File

@ -29,8 +29,16 @@ subprojects {
plugins.apply("org.jetbrains.kotlin.plugin.serialization")
plugins.apply("com.github.johnrengelman.shadow")
version = "0.1"
group = "io.gorence"
version = "1.0-SNAPSHOT"
// Add build number if running under CI.
val versionWithBuild = if (System.getenv("CI_PIPELINE_IID") != null) {
version as String + ".${System.getenv("CI_PIPELINE_IID")}"
} else {
"DEV"
}
version = versionWithBuild
dependencies {
// Kotlin dependencies