File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,26 +10,27 @@ jobs:
1010 name : Build and analyze
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v6
1414 with :
1515 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16- - name : Set up JDK 11
17- uses : actions/setup-java@v1
16+ - name : Set up JDK 21
17+ uses : actions/setup-java@v5
1818 with :
19- java-version : 11
19+ distribution : ' temurin'
20+ java-version : 21
2021 - name : Cache SonarCloud packages
21- uses : actions/cache@v1
22+ uses : actions/cache@v5
2223 with :
2324 path : ~/.sonar/cache
2425 key : ${{ runner.os }}-sonar
2526 restore-keys : ${{ runner.os }}-sonar
2627 - name : Cache Maven packages
27- uses : actions/cache@v1
28+ uses : actions/cache@v5
2829 with :
2930 path : ~/.m2
3031 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3132 restore-keys : ${{ runner.os }}-m2
3233 - name : Build and analyze
3334 env :
3435 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
35- run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=testn2
36+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ross-bragg-sonarsource_java-test -Dsonar.organization=ross-bragg-sonarsource -Dsonar.host.url=https://dev10.sc-dev10.io
Original file line number Diff line number Diff line change 99 <version >1.0-SNAPSHOT</version >
1010
1111 <properties >
12- <maven .compiler.source>11 </maven .compiler.source>
13- <maven .compiler.target>11 </maven .compiler.target>
12+ <maven .compiler.source>21 </maven .compiler.source>
13+ <maven .compiler.target>21 </maven .compiler.target>
1414 <sonar .organization>nawarorga</sonar .organization>
1515 <sonar .host.url>https://sonarcloud.io</sonar .host.url>
1616 </properties >
You can’t perform that action at this time.
0 commit comments