@@ -5,22 +5,18 @@ plugins {
55 id ' java'
66 id ' groovy'
77 id ' java-library'
8- id ' maven'
98 id ' maven-publish'
109 id ' signing'
1110 id " io.github.gradle-nexus.publish-plugin" version " 1.0.0"
1211 id " biz.aQute.bnd.builder" version " 6.4.0"
1312}
1413
15- if ( JavaVersion . current() != JavaVersion . VERSION_1_8 ) {
16- def msg = String . format( " This build must be run with java 1.8 - you are running %s - gradle finds the JDK via JAVA_HOME=%s " ,
17- JavaVersion . current(), System . getenv( " JAVA_HOME " ) )
18- throw new GradleException (msg)
14+ java {
15+ toolchain {
16+ languageVersion = JavaLanguageVersion . of( 11 )
17+ }
1918}
2019
21- sourceCompatibility = 1.8
22- targetCompatibility = 1.8
23-
2420def getDevelopmentVersion () {
2521 def output = new StringBuilder ()
2622 def error = new StringBuilder ()
@@ -45,11 +41,10 @@ repositories {
4541}
4642
4743dependencies {
48- compile " com.graphql-java:graphql-java:20.3 "
44+ implementation " com.graphql-java:graphql-java:21.0 "
4945
5046 testImplementation ' org.spockframework:spock-core:1.3-groovy-2.5'
5147 testImplementation(' org.codehaus.groovy:groovy:2.5.13' )
52-
5348}
5449
5550task sourcesJar (type : Jar , dependsOn : classes) {
@@ -88,7 +83,7 @@ publishing {
8883 asNode(). children(). last() + {
8984 resolveStrategy = Closure . DELEGATE_FIRST
9085 name ' graphql-java-extended-scalars'
91- description ' A library fo extended scalars for graphql-java'
86+ description ' A library of extended scalars for graphql-java'
9287 url ' https://github.com/graphql-java/graphql-java-extended-scalars'
9388 inceptionYear ' 2018'
9489
@@ -134,7 +129,6 @@ signing {
134129 sign publishing. publications
135130}
136131
137-
138132// all publish tasks depend on the build task
139133tasks. withType(PublishToMavenRepository ) {
140134 dependsOn build
0 commit comments