File tree Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -10,27 +10,23 @@ jobs:
1010 name : Build
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v3
1414 with :
1515 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16- - name : Set up JDK 14
17- uses : actions/setup-java@v1
16+ - name : Setup up JDK
17+ uses : actions/setup-java@v3
1818 with :
19- java-version : 14
19+ java-version : 17
20+ cache : ' maven'
21+ distribution : ' temurin'
2022 - name : Cache SonarCloud packages
2123 uses : actions/cache@v1
2224 with :
2325 path : ~/.sonar/cache
2426 key : ${{ runner.os }}-sonar
2527 restore-keys : ${{ runner.os }}-sonar
26- - name : Cache Maven packages
27- uses : actions/cache@v1
28- with :
29- path : ~/.m2
30- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
31- restore-keys : ${{ runner.os }}-m2
3228 - name : Build and analyze
3329 env :
3430 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3531 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
36- run : mvn -Dgpg.skip=true -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
32+ run : mvn -Dgpg.skip=true -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
Original file line number Diff line number Diff line change 99 publish :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v3
1313 - name : Set up Maven Central Repository
14- uses : actions/setup-java@v1
14+ uses : actions/setup-java@v3
1515 with :
16- java-version : 14
16+ java-version : 17
17+ distribution : ' temurin'
1718 server-id : ossrh
1819 server-username : MAVEN_USERNAME
1920 server-password : MAVEN_PASSWORD
Original file line number Diff line number Diff line change 4949
5050 <properties >
5151 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
52- <maven .compiler.source>14 </maven .compiler.source>
53- <maven .compiler.target>14 </maven .compiler.target>
52+ <maven .compiler.source>17 </maven .compiler.source>
53+ <maven .compiler.target>17 </maven .compiler.target>
5454 <sonar .projectKey>nightowlengineer_sonos-api-java</sonar .projectKey>
5555 <sonar .organization>nightowlengineer</sonar .organization>
5656 <sonar .host.url>https://sonarcloud.io</sonar .host.url>
You can’t perform that action at this time.
0 commit comments