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 bfb1c83 commit 2aaed8eCopy full SHA for 2aaed8e
1 file changed
build.gradle
@@ -5,15 +5,18 @@ plugins {
5
}
6
7
group = 'org.polypheny'
8
-version = hasProperty('version') ? version : 'SNAPSHOT'
9
10
def majorVersion = 0
11
def minorVersion = 0
12
-if (hasProperty('version')) {
13
- // Split version into major and minor components
14
- def versionComponents = version.split("\\.")
15
- majorVersion = versionComponents[0].toInteger()
16
- minorVersion = versionComponents[1].toInteger()
+if (hasProperty('version') ) {
+ if ( version == "unspecified" ) {
+ version = 'SNAPSHOT'
+ } else {
+ // Split version into major and minor components
+ def versionComponents = version.split("\\.")
17
+ majorVersion = versionComponents[0].toInteger()
18
+ minorVersion = versionComponents[1].toInteger()
19
+ }
20
21
22
repositories {
0 commit comments