File tree Expand file tree Collapse file tree 9 files changed +31
-25
lines changed Expand file tree Collapse file tree 9 files changed +31
-25
lines changed Original file line number Diff line number Diff line change 1616 fail-fast : false
1717 matrix :
1818 os : [ubuntu-latest, macos-latest, windows-latest]
19- java : [11, 15 ]
19+ java : [17, 19 ]
2020 needs : validation
2121 runs-on : ${{ matrix.os }}
2222 steps :
@@ -59,12 +59,12 @@ jobs:
5959 if : env.SONAR_TOKEN != null
6060 with :
6161 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
62- - name : Set up JDK 11
62+ - name : Set up JDK 17
6363 if : env.SONAR_TOKEN != null
6464 uses : actions/setup-java@v3
6565 with :
6666 distribution : ' zulu'
67- java-version : 11
67+ java-version : 17
6868 - name : Cache SonarCloud packages
6969 if : env.SONAR_TOKEN != null
7070 uses : actions/cache@v3
8484 env :
8585 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
8686 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
87- run : ./gradlew build jacocoTestReport sonarqube --info
87+ run : ./gradlew build jacocoTestReport sonar --info
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ jobs:
1919 uses : actions/setup-java@v3
2020 with :
2121 distribution : ' zulu'
22- java-version : 11
22+ java-version : 17
2323 - name : Cache Gradle
2424 uses : actions/cache@v3
2525 env :
26- java-version : 11
26+ java-version : 17
2727 with :
2828 path : |
2929 ~/.gradle/caches
@@ -46,11 +46,11 @@ jobs:
4646 uses : actions/setup-java@v3
4747 with :
4848 distribution : ' zulu'
49- java-version : 11
49+ java-version : 17
5050 - name : Cache Gradle
5151 uses : actions/cache@v3
5252 env :
53- java-version : 11
53+ java-version : 17
5454 with :
5555 path : |
5656 ~/.gradle/caches
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ jobs:
2222 uses : actions/setup-java@v3
2323 with :
2424 distribution : ' zulu'
25- java-version : 11
25+ java-version : 17
2626 - name : Cache Gradle
2727 uses : actions/cache@v3
2828 env :
29- java-version : 11
29+ java-version : 17
3030 with :
3131 path : |
3232 ~/.gradle/caches
@@ -49,11 +49,11 @@ jobs:
4949 uses : actions/setup-java@v3
5050 with :
5151 distribution : ' zulu'
52- java-version : 11
52+ java-version : 17
5353 - name : Cache Gradle
5454 uses : actions/cache@v3
5555 env :
56- java-version : 11
56+ java-version : 17
5757 with :
5858 path : |
5959 ~/.gradle/caches
@@ -77,11 +77,11 @@ jobs:
7777 - uses : actions/checkout@v3
7878 with :
7979 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
80- - name : Set up JDK 11
80+ - name : Set up JDK 17
8181 uses : actions/setup-java@v3
8282 with :
8383 distribution : ' zulu'
84- java-version : 11
84+ java-version : 17
8585 - name : Cache SonarCloud packages
8686 uses : actions/cache@v3
8787 with :
9898 env :
9999 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
100100 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
101- run : ./gradlew build jacocoTestReport sonarqube --info
101+ run : ./gradlew build jacocoTestReport sonar --info
Original file line number Diff line number Diff line change 11plugins {
22 id " org.springframework.boot" version " $LIB_SPRING_BOOT_VER " apply false
3- id " org.sonarqube" version " 3.4 .0.2513 "
3+ id " org.sonarqube" version " 3.5 .0.2730 "
44 id " jacoco"
55 id ' io.codearte.nexus-staging' version ' 0.30.0'
66}
77
8- sonarqube {
8+ sonar {
99 properties {
1010 property " sonar.projectKey" , " graphql-java-kickstart_graphql-spring-webclient"
1111 property " sonar.organization" , " graphql-java-kickstart"
@@ -58,8 +58,8 @@ subprojects {
5858 }
5959
6060 compileJava {
61- sourceCompatibility = JavaVersion . VERSION_1_8
62- targetCompatibility = JavaVersion . VERSION_1_8
61+ sourceCompatibility = JavaVersion . VERSION_17
62+ targetCompatibility = JavaVersion . VERSION_17
6363 }
6464
6565 compileJava. dependsOn(processResources)
Original file line number Diff line number Diff line change 1- version =1.1 .0-SNAPSHOT
1+ version =2.0 .0-SNAPSHOT
22
33PROJECT_GROUP = com.graphql-java-kickstart
44PROJECT_NAME = graphql-spring-webclient
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.6-all.zip
4+ networkTimeout =10000
45zipStoreBase =GRADLE_USER_HOME
56zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 5555# Darwin, MinGW, and NonStop.
5656#
5757# (3) This script is generated from the Groovy template
58- # https://github.com/gradle/gradle/blob/master /subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+ # https://github.com/gradle/gradle/blob/HEAD /subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959# within the Gradle project.
6060#
6161# You can find Gradle at https://github.com/gradle/gradle/.
8080 esac
8181done
8282
83- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
84-
85- APP_NAME=" Gradle"
83+ # This is normally unused
84+ # shellcheck disable=SC2034
8685APP_BASE_NAME=${0##*/ }
86+ APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
8787
8888# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
143143if ! " $cygwin " && ! " $darwin " && ! " $nonstop " ; then
144144 case $MAX_FD in # (
145145 max* )
146+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+ # shellcheck disable=SC3045
146148 MAX_FD=$( ulimit -H -n ) ||
147149 warn " Could not query maximum file descriptor limit"
148150 esac
149151 case $MAX_FD in # (
150152 ' ' | soft) : ;; # (
151153 * )
154+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+ # shellcheck disable=SC3045
152156 ulimit -n " $MAX_FD " ||
153157 warn " Could not set maximum file descriptor limit to $MAX_FD "
154158 esac
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
2626
2727set DIRNAME = %~dp0
2828if " %DIRNAME% " == " " set DIRNAME = .
29+ @ rem This is normally unused
2930set APP_BASE_NAME = %~n0
3031set APP_HOME = %DIRNAME%
3132
You can’t perform that action at this time.
0 commit comments