File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ buildscript {
8
8
// Detect version from version.properties and align it with the build settings
9
9
def build = new Properties ()
10
10
file(" version.properties" ). withInputStream { build. load(it) }
11
- var isSnapshot = " true " == System . getProperty(" build.snapshot" , " true" )
11
+ var isSnapshot = System . getProperty(" build.snapshot" , " true" )
12
12
buildVersion = build. getProperty(" version" )
13
- if (isSnapshot && ! buildVersion. endsWith(" SNAPSHOT" )) {
13
+ if (isSnapshot. toBoolean() && ! buildVersion. endsWith(" SNAPSHOT" )) {
14
14
buildVersion = buildVersion + " -SNAPSHOT"
15
15
} else if (! isSnapshot && buildVersion. endsWith(" SNAPSHOT" )) {
16
16
throw GradleException (" Expecting release (non-SNAPSHOT) build but version is not set accordingly: " + buildVersion)
You can’t perform that action at this time.
0 commit comments