Skip to content

Commit e5f08ec

Browse files
authored
Merge pull request #84 from graphql-java/java-11
Upgrade to Java 11
2 parents 387eb67 + 7bbe4e6 commit e5f08ec

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/master.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
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

.github/workflows/pull_request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
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

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
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

build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ version = releaseVersion ? releaseVersion : getDevelopmentVersion()
2929
println "Building version = " + version
3030
group = '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

4141
repositories {
4242
mavenCentral()

0 commit comments

Comments
 (0)