@@ -23,30 +23,25 @@ def getDevelopmentVersion() {
2323 " 0.0.0-" + new SimpleDateFormat (' yyyy-MM-dd\' T\' HH-mm-ss' ). format(new Date ()) + " -" + gitHash
2424}
2525
26-
2726def releaseVersion = System . env. RELEASE_VERSION
2827version = releaseVersion ? releaseVersion : getDevelopmentVersion()
2928println " Building version = " + version
3029group = ' com.graphql-java'
3130
32- if ( JavaVersion . current() != JavaVersion . VERSION_11 ) {
33- def msg = String . format( " This build must be run with Java 11 - you are running %s - gradle finds the JDK via JAVA_HOME=%s " ,
34- JavaVersion . current(), System . getenv( " JAVA_HOME " ) )
35- throw new GradleException (msg)
31+ java {
32+ toolchain {
33+ languageVersion = JavaLanguageVersion . of( 11 )
34+ }
3635}
3736
38- sourceCompatibility = JavaVersion . VERSION_11 . toString()
39- targetCompatibility = JavaVersion . VERSION_11 . toString()
40-
4137repositories {
4238 mavenCentral()
4339 mavenLocal()
4440}
4541
46-
4742dependencies {
48- api " com.graphql-java:graphql-java:20 .0"
49- api " com.graphql-java:graphql-java-extended-scalars:20 .0"
43+ api " com.graphql-java:graphql-java:21 .0"
44+ api " com.graphql-java:graphql-java-extended-scalars:21 .0"
5045 api " org.hibernate.validator:hibernate-validator:7.0.1.Final"
5146 api " org.glassfish:jakarta.el:4.0.2"
5247
@@ -91,7 +86,7 @@ publishing {
9186 asNode(). children(). last() + {
9287 resolveStrategy = Closure . DELEGATE_FIRST
9388 name ' graphql-java-extended-validation'
94- description ' A library fo extended validation for graphql-java'
89+ description ' A library of extended validation for graphql-java'
9590 url ' https://github.com/graphql-java/graphql-java-extended-validation'
9691 inceptionYear ' 2019'
9792
@@ -137,9 +132,7 @@ signing {
137132 sign publishing. publications
138133}
139134
140-
141135// all publish tasks depend on the build task
142136tasks. withType(PublishToMavenRepository ) {
143137 dependsOn build
144138}
145-
0 commit comments