File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ def getDevelopmentVersion() {
2020 println " git hash is empty: error: ${ error.toString()} "
2121 throw new IllegalStateException (" git hash could not be determined" )
2222 }
23- new SimpleDateFormat (' yyyy-MM-dd\' T\' HH-mm-ss' ). format(new Date ()) + " -" + gitHash + " -SNAPSHOT "
23+ new SimpleDateFormat (' yyyy-MM-dd\' T\' HH-mm-ss' ). format(new Date ()) + " -" + gitHash
2424}
2525
2626
27- def releaseVersion = System . getProperty( " RELEASE_VERSION" )
27+ def releaseVersion = System . properties . RELEASE_VERSION
2828version = releaseVersion ? releaseVersion : getDevelopmentVersion()
2929println " Building version = " + version
30-
3130group = ' com.graphql-java'
3231
3332sourceCompatibility = 1.8
@@ -38,6 +37,7 @@ repositories {
3837 mavenLocal()
3938}
4039
40+
4141dependencies {
4242 compile " com.graphql-java:graphql-java:16.1"
4343
@@ -46,12 +46,12 @@ dependencies {
4646}
4747
4848task sourcesJar (type : Jar , dependsOn : classes) {
49- classifier = ' sources'
49+ archiveClassifier . set( " sources" )
5050 from sourceSets. main. allSource
5151}
5252
5353task javadocJar (type : Jar , dependsOn : javadoc) {
54- classifier = ' javadoc'
54+ archiveClassifier . set( " javadoc" )
5555 from javadoc. destinationDir
5656}
5757
You can’t perform that action at this time.
0 commit comments