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 16
16
fail-fast : false
17
17
matrix :
18
18
os : [ubuntu-latest, macos-latest, windows-latest]
19
- java : [11, 15 ]
19
+ java : [17, 19 ]
20
20
needs : validation
21
21
runs-on : ${{ matrix.os }}
22
22
steps :
@@ -59,12 +59,12 @@ jobs:
59
59
if : env.SONAR_TOKEN != null
60
60
with :
61
61
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
63
63
if : env.SONAR_TOKEN != null
64
64
uses : actions/setup-java@v3
65
65
with :
66
66
distribution : ' zulu'
67
- java-version : 11
67
+ java-version : 17
68
68
- name : Cache SonarCloud packages
69
69
if : env.SONAR_TOKEN != null
70
70
uses : actions/cache@v3
84
84
env :
85
85
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
86
86
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:
19
19
uses : actions/setup-java@v3
20
20
with :
21
21
distribution : ' zulu'
22
- java-version : 11
22
+ java-version : 17
23
23
- name : Cache Gradle
24
24
uses : actions/cache@v3
25
25
env :
26
- java-version : 11
26
+ java-version : 17
27
27
with :
28
28
path : |
29
29
~/.gradle/caches
@@ -46,11 +46,11 @@ jobs:
46
46
uses : actions/setup-java@v3
47
47
with :
48
48
distribution : ' zulu'
49
- java-version : 11
49
+ java-version : 17
50
50
- name : Cache Gradle
51
51
uses : actions/cache@v3
52
52
env :
53
- java-version : 11
53
+ java-version : 17
54
54
with :
55
55
path : |
56
56
~/.gradle/caches
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ jobs:
22
22
uses : actions/setup-java@v3
23
23
with :
24
24
distribution : ' zulu'
25
- java-version : 11
25
+ java-version : 17
26
26
- name : Cache Gradle
27
27
uses : actions/cache@v3
28
28
env :
29
- java-version : 11
29
+ java-version : 17
30
30
with :
31
31
path : |
32
32
~/.gradle/caches
@@ -49,11 +49,11 @@ jobs:
49
49
uses : actions/setup-java@v3
50
50
with :
51
51
distribution : ' zulu'
52
- java-version : 11
52
+ java-version : 17
53
53
- name : Cache Gradle
54
54
uses : actions/cache@v3
55
55
env :
56
- java-version : 11
56
+ java-version : 17
57
57
with :
58
58
path : |
59
59
~/.gradle/caches
@@ -77,11 +77,11 @@ jobs:
77
77
- uses : actions/checkout@v3
78
78
with :
79
79
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
81
81
uses : actions/setup-java@v3
82
82
with :
83
83
distribution : ' zulu'
84
- java-version : 11
84
+ java-version : 17
85
85
- name : Cache SonarCloud packages
86
86
uses : actions/cache@v3
87
87
with :
98
98
env :
99
99
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
100
100
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 1
1
plugins {
2
2
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 "
4
4
id " jacoco"
5
5
id ' io.codearte.nexus-staging' version ' 0.30.0'
6
6
}
7
7
8
- sonarqube {
8
+ sonar {
9
9
properties {
10
10
property " sonar.projectKey" , " graphql-java-kickstart_graphql-spring-webclient"
11
11
property " sonar.organization" , " graphql-java-kickstart"
@@ -58,8 +58,8 @@ subprojects {
58
58
}
59
59
60
60
compileJava {
61
- sourceCompatibility = JavaVersion . VERSION_1_8
62
- targetCompatibility = JavaVersion . VERSION_1_8
61
+ sourceCompatibility = JavaVersion . VERSION_17
62
+ targetCompatibility = JavaVersion . VERSION_17
63
63
}
64
64
65
65
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
2
2
3
3
PROJECT_GROUP = com.graphql-java-kickstart
4
4
PROJECT_NAME = graphql-spring-webclient
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =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
4
5
zipStoreBase =GRADLE_USER_HOME
5
6
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 55
55
# Darwin, MinGW, and NonStop.
56
56
#
57
57
# (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
59
59
# within the Gradle project.
60
60
#
61
61
# You can find Gradle at https://github.com/gradle/gradle/.
80
80
esac
81
81
done
82
82
83
- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
84
-
85
- APP_NAME=" Gradle"
83
+ # This is normally unused
84
+ # shellcheck disable=SC2034
86
85
APP_BASE_NAME=${0##*/ }
86
+ APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
87
87
88
88
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
89
DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
143
143
if ! " $cygwin " && ! " $darwin " && ! " $nonstop " ; then
144
144
case $MAX_FD in # (
145
145
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
146
148
MAX_FD=$( ulimit -H -n ) ||
147
149
warn " Could not query maximum file descriptor limit"
148
150
esac
149
151
case $MAX_FD in # (
150
152
' ' | soft) : ;; # (
151
153
* )
154
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155
+ # shellcheck disable=SC3045
152
156
ulimit -n " $MAX_FD " ||
153
157
warn " Could not set maximum file descriptor limit to $MAX_FD "
154
158
esac
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
26
26
27
27
set DIRNAME = %~dp0
28
28
if " %DIRNAME% " == " " set DIRNAME = .
29
+ @ rem This is normally unused
29
30
set APP_BASE_NAME = %~n0
30
31
set APP_HOME = %DIRNAME%
31
32
You can’t perform that action at this time.
0 commit comments