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() {
20
20
println " git hash is empty: error: ${ error.toString()} "
21
21
throw new IllegalStateException (" git hash could not be determined" )
22
22
}
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
24
24
}
25
25
26
26
27
- def releaseVersion = System . getProperty( " RELEASE_VERSION" )
27
+ def releaseVersion = System . properties . RELEASE_VERSION
28
28
version = releaseVersion ? releaseVersion : getDevelopmentVersion()
29
29
println " Building version = " + version
30
-
31
30
group = ' com.graphql-java'
32
31
33
32
sourceCompatibility = 1.8
@@ -38,6 +37,7 @@ repositories {
38
37
mavenLocal()
39
38
}
40
39
40
+
41
41
dependencies {
42
42
compile " com.graphql-java:graphql-java:16.1"
43
43
@@ -46,12 +46,12 @@ dependencies {
46
46
}
47
47
48
48
task sourcesJar (type : Jar , dependsOn : classes) {
49
- classifier = ' sources'
49
+ archiveClassifier . set( " sources" )
50
50
from sourceSets. main. allSource
51
51
}
52
52
53
53
task javadocJar (type : Jar , dependsOn : javadoc) {
54
- classifier = ' javadoc'
54
+ archiveClassifier . set( " javadoc" )
55
55
from javadoc. destinationDir
56
56
}
57
57
You can’t perform that action at this time.
0 commit comments