File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1515 steps :
1616 - uses : actions/checkout@v1
1717 - uses : gradle/wrapper-validation-action@v1
18- - name : Set up JDK 1.8
18+ - name : Set up JDK 11
1919 uses : actions/setup-java@v1
2020 with :
21- java-version : ' 8 .0.282 '
21+ java-version : ' 11 .0.17 '
2222 - name : build test and publish
2323 run : ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace
Original file line number Diff line number Diff line change 1313 steps :
1414 - uses : actions/checkout@v1
1515 - uses : gradle/wrapper-validation-action@v1
16- - name : Set up JDK 1.8
16+ - name : Set up JDK 11
1717 uses : actions/setup-java@v1
1818 with :
19- java-version : ' 8 .0.282 '
19+ java-version : ' 11 .0.17 '
2020 - name : build and test
2121 run : ./gradlew assemble && ./gradlew check --info --stacktrace
Original file line number Diff line number Diff line change 1919 steps :
2020 - uses : actions/checkout@v1
2121 - uses : gradle/wrapper-validation-action@v1
22- - name : Set up JDK 1.8
22+ - name : Set up JDK 11
2323 uses : actions/setup-java@v1
2424 with :
25- java-version : ' 8 .0.282 '
25+ java-version : ' 11 .0.17 '
2626 - name : build test and publish
2727 run : ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ version = releaseVersion ? releaseVersion : getDevelopmentVersion()
2929println " Building version = " + version
3030group = ' com.graphql-java'
3131
32- if (JavaVersion . current() != JavaVersion . VERSION_1_8 ) {
33- 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" ,
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" ,
3434 JavaVersion . current(), System . getenv(" JAVA_HOME" ))
3535 throw new GradleException (msg)
3636}
3737
38- sourceCompatibility = 1.8
39- targetCompatibility = 1.8
38+ sourceCompatibility = JavaVersion . VERSION_11 . toString()
39+ targetCompatibility = JavaVersion . VERSION_11 . toString()
4040
4141repositories {
4242 mavenCentral()
You can’t perform that action at this time.
0 commit comments