We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 169f669 commit 1afbe98Copy full SHA for 1afbe98
build.gradle
@@ -8,9 +8,9 @@ buildscript {
8
// Detect version from version.properties and align it with the build settings
9
def build = new Properties()
10
file("version.properties").withInputStream { build.load(it) }
11
- var isSnapshot = "true" == System.getProperty("build.snapshot", "true")
+ var isSnapshot = System.getProperty("build.snapshot", "true")
12
buildVersion = build.getProperty("version")
13
- if (isSnapshot && !buildVersion.endsWith("SNAPSHOT")) {
+ if (isSnapshot.toBoolean() && !buildVersion.endsWith("SNAPSHOT")) {
14
buildVersion = buildVersion + "-SNAPSHOT"
15
} else if (!isSnapshot && buildVersion.endsWith("SNAPSHOT")) {
16
throw GradleException("Expecting release (non-SNAPSHOT) build but version is not set accordingly: " + buildVersion)
0 commit comments