File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 15
15
steps :
16
16
- uses : actions/checkout@v1
17
17
- uses : gradle/wrapper-validation-action@v1
18
- - name : Set up JDK 1.8
18
+ - name : Set up JDK 11
19
19
uses : actions/setup-java@v1
20
20
with :
21
- java-version : ' 8 .0.282 '
21
+ java-version : ' 11 .0.17 '
22
22
- name : build test and publish
23
23
run : ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace
Original file line number Diff line number Diff line change 13
13
steps :
14
14
- uses : actions/checkout@v1
15
15
- uses : gradle/wrapper-validation-action@v1
16
- - name : Set up JDK 1.8
16
+ - name : Set up JDK 11
17
17
uses : actions/setup-java@v1
18
18
with :
19
- java-version : ' 8 .0.282 '
19
+ java-version : ' 11 .0.17 '
20
20
- name : build and test
21
21
run : ./gradlew assemble && ./gradlew check --info --stacktrace
Original file line number Diff line number Diff line change 19
19
steps :
20
20
- uses : actions/checkout@v1
21
21
- uses : gradle/wrapper-validation-action@v1
22
- - name : Set up JDK 1.8
22
+ - name : Set up JDK 11
23
23
uses : actions/setup-java@v1
24
24
with :
25
- java-version : ' 8 .0.282 '
25
+ java-version : ' 11 .0.17 '
26
26
- name : build test and publish
27
27
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()
29
29
println " Building version = " + version
30
30
group = ' com.graphql-java'
31
31
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" ,
34
34
JavaVersion . current(), System . getenv(" JAVA_HOME" ))
35
35
throw new GradleException (msg)
36
36
}
37
37
38
- sourceCompatibility = 1.8
39
- targetCompatibility = 1.8
38
+ sourceCompatibility = JavaVersion . VERSION_11 . toString()
39
+ targetCompatibility = JavaVersion . VERSION_11 . toString()
40
40
41
41
repositories {
42
42
mavenCentral()
You can’t perform that action at this time.
0 commit comments