File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ version: 2
2626jobs :
2727 sonar-pr :
2828 docker :
29- - image : cimg/openjdk:11 .0-node
29+ - image : cimg/openjdk:17 .0-node
3030 steps :
3131 - checkout
3232 - restore_cache :
3333 key : jdp-sonar-pr-{{ checksum "pom.xml" }}
3434 - run : |
3535 sudo apt-get update
36- sudo apt-get install -y openjdk-11 -jdk xvfb
36+ sudo apt-get install -y openjdk-17 -jdk xvfb
3737 if [ -n "${CIRCLE_PR_NUMBER}" ]; then
3838 MAVEN_OPTS="-Xmx3000m" xvfb-run ./mvnw -B clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
3939 -Dsonar.pullrequest.key=${CIRCLE_PR_NUMBER} \
Original file line number Diff line number Diff line change 3939 # This Workflow Job will build this project and run Sonar analysis using JDK 11.0.3
4040 build-and-analyze :
4141
42- name : Build and Run Sonar analysis on JDK 11.0.3
42+ name : Build and Run Sonar analysis on JDK 17
4343 runs-on : ubuntu-20.04
4444 steps :
4545
@@ -49,11 +49,11 @@ jobs:
4949 # Disabling shallow clone for improving relevancy of SonarQube reporting
5050 fetch-depth : 0
5151
52- - name : Set up JDK 11.0.3
52+ - name : Set up JDK 17
5353 uses : actions/setup-java@v3
5454 with :
55- java-version : 11.0.3
56- distribution : ' zulu '
55+ java-version : ' 17 '
56+ distribution : ' temurin '
5757 cache : ' maven'
5858
5959 # Cache Sonar packages which as used to run anaylysis and collect metrics
@@ -79,18 +79,18 @@ jobs:
7979 # This Workflow Job is going to build the project on the latest stable JDK 11
8080 build :
8181
82- name : Build and Test on JDK 11
82+ name : Build and Test on JDK 17
8383 runs-on : ubuntu-20.04
8484 steps :
8585
8686 - name : Checkout Code
8787 uses : actions/checkout@v3
8888
89- - name : Set up JDK 11 (Latest)
89+ - name : Set up JDK 17
9090 uses : actions/setup-java@v3
9191 with :
92- java-version : 11
93- distribution : ' zulu '
92+ java-version : ' 17 '
93+ distribution : ' temurin '
9494 cache : ' maven'
9595
9696 # Some tests need screen access
Original file line number Diff line number Diff line change 3434jobs :
3535 build :
3636
37- name : Build JDP
37+ name : Build on JDK 17
3838 runs-on : ubuntu-20.04
39- strategy :
40- matrix :
41- java-version : [ 11.0.3, 11 ]
4239 steps :
4340
4441 - name : Checkout Code
4542 uses : actions/checkout@v3
4643
47- - name : Set up JDK ${{ matrix.java-version }}
44+ - name : Set up JDK 17
4845 uses : actions/setup-java@v3
4946 with :
50- java-version : ${{ matrix.java-version }}
51- distribution : ' zulu '
47+ java-version : ' 17 '
48+ distribution : ' temurin '
5249 cache : ' maven'
5350
5451 # Some tests need screen access
You can’t perform that action at this time.
0 commit comments