Skip to content

Commit

Permalink
chore: use snapshot version unless user asks producing a release version
Browse files Browse the repository at this point in the history
Release version can be triggered with -Prelease

Signed-off-by: Vladimir Sitnikov <[email protected]>
  • Loading branch information
vlsi committed Aug 1, 2023
1 parent 550be49 commit eddc5a9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ plugins {
`embedded-kotlin` apply false
}

val buildVersion = "${findProperty("version")}${releaseParams.snapshotSuffix}"
version = "${findProperty("version")}${releaseParams.snapshotSuffix}"

println("Building Sigstore Java $buildVersion")

val isReleaseVersion = rootProject.releaseParams.release.get()
println("Building Sigstore Java $version")

releaseParams {
tlp.set("sigstore-java")
Expand All @@ -33,5 +31,5 @@ releaseParams {
}

allprojects {
version = project.findProperty("version") as? String ?: rootProject.version
version = rootProject.version
}

0 comments on commit eddc5a9

Please sign in to comment.