File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ version = releaseVersion ? releaseVersion : getDevelopmentVersion()
31
31
println " Building version = " + version
32
32
group = ' com.graphql-java'
33
33
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" ,
36
36
JavaVersion . current(), System . getenv(" JAVA_HOME" ))
37
37
throw new GradleException (msg)
38
38
}
39
39
40
- sourceCompatibility = 1.8
41
- targetCompatibility = 1.8
40
+ sourceCompatibility = JavaVersion . VERSION_11 . toString()
41
+ targetCompatibility = JavaVersion . VERSION_11 . toString()
42
42
43
43
repositories {
44
44
mavenCentral()
You can’t perform that action at this time.
0 commit comments