File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,13 +10,22 @@ apply plugin: 'maven-publish'
1010apply plugin : ' antlr'
1111apply plugin : ' osgi'
1212
13+ def getDevelopmentVersion () {
14+ def output = new StringBuilder ()
15+ def error = new StringBuilder ()
16+ def gitShortHash = ' git rev-parse --short HEAD' . execute()
17+ gitShortHash. consumeProcessOutput(output, error)
18+ gitShortHash. waitForOrKill(500 )
19+ new SimpleDateFormat (' yyyy-MM-dd\' T\' HH-mm-ss' ). format(new Date ()) + " #" + output. toString(). trim()
20+ }
21+
22+
1323sourceCompatibility = 1.8
1424targetCompatibility = 1.8
1525def reactiveStreamsVersion = ' 1.0.2'
1626def slf4jVersion = ' 1.7.25'
1727def releaseVersion = System . properties. RELEASE_VERSION
18- version = releaseVersion ? releaseVersion : new SimpleDateFormat (' yyyy-MM-dd\' T\' HH-mm-ss' ). format(new Date ())
19- def versionToPublish = version
28+ version = releaseVersion ? releaseVersion : getDevelopmentVersion()
2029group = ' com.graphql-java'
2130
2231
You can’t perform that action at this time.
0 commit comments