File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : SonarCloud
1+ name : SonarQube
22on :
33 push :
44 branches :
55 - master
66 pull_request :
7- types : [ opened, synchronize, reopened ]
7+ types : [opened, synchronize, reopened]
88jobs :
99 build :
1010 name : Build and analyze
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
1616 - name : Set up JDK 17
17- uses : actions/setup-java@v3
17+ uses : actions/setup-java@v4
1818 with :
1919 java-version : 17
2020 distribution : ' zulu' # Alternative distribution options are available
21- - name : Cache SonarCloud packages
22- uses : actions/cache@v3
21+ - name : Cache SonarQube packages
22+ uses : actions/cache@v4
2323 with :
2424 path : ~/.sonar/cache
2525 key : ${{ runner.os }}-sonar
2626 restore-keys : ${{ runner.os }}-sonar
2727 - name : Cache Gradle packages
28- uses : actions/cache@v3
28+ uses : actions/cache@v4
2929 with :
3030 path : ~/.gradle/caches
3131 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
3232 restore-keys : ${{ runner.os }}-gradle
3333 - name : Build and analyze
3434 env :
35- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3635 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37- run : ./gradlew build sonar --info
36+ run : ./gradlew build sonar --info
Original file line number Diff line number Diff line change 11plugins {
22 id " java-library"
33 id " maven-publish"
4- id " org.sonarqube" version " 6.1.0.5360 "
4+ id " org.sonarqube" version " 6.0.1.5171 "
55 id " io.freefair.lombok" version " 8.13.1"
66}
77
@@ -47,4 +47,4 @@ sonar {
4747 property " sonar.organization" , " danny1"
4848 property " sonar.host.url" , " https://sonarcloud.io"
4949 }
50- }
50+ }
You can’t perform that action at this time.
0 commit comments