File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Expand file tree Collapse file tree 4 files changed +10
-14
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 11
18+ - name : Set up JDK 1.8
1919 uses : actions/setup-java@v1
2020 with :
21- java-version : ' 11 .0.17 '
21+ java-version : ' 8 .0.282 '
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 1616 steps :
1717 - uses : actions/checkout@v1
1818 - uses : gradle/wrapper-validation-action@v1
19- - name : Set up JDK 11
19+ - name : Set up JDK 1.8
2020 uses : actions/setup-java@v1
2121 with :
22- java-version : ' 11 .0.17 '
22+ java-version : ' 8 .0.282 '
2323 - name : build and test
2424 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 11
22+ - name : Set up JDK 1.8
2323 uses : actions/setup-java@v1
2424 with :
25- java-version : ' 11 .0.17 '
25+ java-version : ' 8 .0.282 '
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 @@ -31,21 +31,17 @@ version = releaseVersion ? releaseVersion : getDevelopmentVersion()
3131println " Building version = " + version
3232group = ' com.graphql-java'
3333
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- JavaVersion . current(), System . getenv( " JAVA_HOME " ) )
37- throw new GradleException (msg)
34+ java {
35+ toolchain {
36+ languageVersion = JavaLanguageVersion . of( 8 )
37+ }
3838}
3939
40- sourceCompatibility = JavaVersion . VERSION_11 . toString()
41- targetCompatibility = JavaVersion . VERSION_11 . toString()
42-
4340repositories {
4441 mavenCentral()
4542 mavenLocal()
4643}
4744
48-
4945dependencies {
5046 compile " com.graphql-java:graphql-java:20.2"
5147
You can’t perform that action at this time.
0 commit comments