@@ -22,7 +22,7 @@ plugins {
2222 id ' maven-publish'
2323 id ' antlr'
2424 id ' signing'
25- id " com.gradleup.shadow" version " 9.4.2 "
25+ id " com.gradleup.shadow" version " 9.6.1 "
2626 id " biz.aQute.bnd.builder" version " 7.1.0"
2727 id " io.github.gradle-nexus.publish-plugin" version " 2.0.0"
2828 id " groovy"
@@ -37,15 +37,15 @@ plugins {
3737
3838java {
3939 toolchain {
40- languageVersion = JavaLanguageVersion . of(25 ) // build on 25 - release on 11
40+ languageVersion = JavaLanguageVersion . of(25 ) // build on 25 - release on 17
4141 }
4242}
4343
4444kotlin {
4545 compilerOptions {
4646 apiVersion = KotlinVersion . KOTLIN_2_0
4747 languageVersion = KotlinVersion . KOTLIN_2_0
48- jvmTarget = JvmTarget . JVM_11
48+ jvmTarget = JvmTarget . JVM_17
4949 javaParameters = true
5050 freeCompilerArgs = [
5151 ' -Xemit-jvm-type-annotations' ,
@@ -176,7 +176,7 @@ def getDevelopmentVersion() {
176176def reactiveStreamsVersion = ' 1.0.3'
177177def releaseVersion = System . env. RELEASE_VERSION
178178def antlrVersion = ' 4.13.2' // https://mvnrepository.com/artifact/org.antlr/antlr4-runtime
179- def guavaVersion = ' 33.7.2 -jre'
179+ def guavaVersion = ' 33.8.0 -jre'
180180version = releaseVersion ? releaseVersion : getDevelopmentVersion()
181181group = ' com.graphql-java'
182182
@@ -568,7 +568,7 @@ def verifyShadedClassAnnotations = tasks.register('verifyShadedClassAnnotations'
568568}
569569
570570/**
571- * Compiles a small Java 11 consumer against only the completed shaded JAR.
571+ * Compiles a small Java 17 consumer against only the completed shaded JAR.
572572 * Resolving {@code ExecutionContext.getOperationDirectives() } forces javac to
573573 * inspect the shaded ImmutableList signature; {@code -Xlint:classfile -Werror }
574574 * turns dangling annotation references into a build failure.
@@ -583,7 +583,7 @@ def compileShadedJarConsumer = tasks.register('compileShadedJarConsumer', JavaCo
583583 }
584584 classpath = files(buildFinalJar. flatMap { it. archiveFile })
585585 destinationDirectory = layout. buildDirectory. dir(' classes/shaded-jar-consumer' )
586- options. release = 11
586+ options. release = 17
587587 options. compilerArgs. addAll([' -Xlint:classfile' , ' -Werror' ])
588588}
589589
@@ -695,13 +695,13 @@ tasks.withType(GroovyCompile) {
695695 // Options when compiling Java using the Groovy plugin.
696696 // (Groovy itself defaults to UTF-8 for Groovy code)
697697 options. encoding = ' UTF-8'
698- sourceCompatibility = ' 11 '
699- targetCompatibility = ' 11 '
698+ sourceCompatibility = ' 17 '
699+ targetCompatibility = ' 17 '
700700 groovyOptions. forkOptions. memoryMaximumSize = " 4g"
701701}
702702
703703tasks. withType(JavaCompile ) {
704- options. release = 11
704+ options. release = 17
705705 options. errorprone {
706706 disableAllChecks = true
707707 check(" NullAway" , CheckSeverity . ERROR )
@@ -812,21 +812,7 @@ tasks.register('testWithJava17', Test) {
812812
813813}
814814
815- tasks. register(' testWithJava11' , Test ) {
816- javaLauncher = javaToolchains. launcherFor {
817- languageVersion = JavaLanguageVersion . of(11 )
818- }
819- testClassesDirs = sourceSets. test. output. classesDirs
820- classpath = sourceSets. test. runtimeClasspath
821-
822- dependsOn tasks. named(' testClasses' )
823-
824- classpath + = sourceSets. jmh. output
825- dependsOn " jmhClasses"
826-
827- }
828-
829- [' 11' , ' 17' , ' 21' ]. each { ver ->
815+ [' 17' , ' 21' ]. each { ver ->
830816 tasks. register(" testngWithJava${ ver} " , Test ) {
831817 useTestNG()
832818 javaLauncher = javaToolchains. launcherFor {
0 commit comments