Skip to content

Commit cecec79

Browse files
committed
Upgrade to Java 11
1 parent 926e80d commit cecec79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ version = releaseVersion ? releaseVersion : getDevelopmentVersion()
3131
println "Building version = " + version
3232
group = 'com.graphql-java'
3333

34-
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
35-
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",
34+
if (JavaVersion.current() != JavaVersion.VERSION_11) {
35+
def msg = String.format("This build must be run with Java 11 - you are running %s - gradle finds the JDK via JAVA_HOME=%s",
3636
JavaVersion.current(), System.getenv("JAVA_HOME"))
3737
throw new GradleException(msg)
3838
}
3939

40-
sourceCompatibility = 1.8
41-
targetCompatibility = 1.8
40+
sourceCompatibility = JavaVersion.VERSION_11.toString()
41+
targetCompatibility = JavaVersion.VERSION_11.toString()
4242

4343
repositories {
4444
mavenCentral()

0 commit comments

Comments
 (0)