File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111env :
1212 DEFAULT_JAVA_VERSION : ' 17'
13+ SONAR_JAVA_VERSION : ' 21'
1314
1415jobs :
1516
4546
4647 - name : Run Sonar analysis
4748 # Skip Sonar on Dependabot in pull_request runs (no secrets there); handled by a separate job below
48- if : matrix.java == env.DEFAULT_JAVA_VERSION && github.actor != 'dependabot[bot]'
49+ if : matrix.java == env.SONAR_JAVA_VERSION && github.actor != 'dependabot[bot]'
4950 env :
5051 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5152 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
7273 uses : actions/setup-java@v5
7374 with :
7475 distribution : temurin
75- java-version : ${{ env.DEFAULT_JAVA_VERSION }}
76+ java-version : ${{ env.SONAR_JAVA_VERSION }}
7677
7778 - name : Build (no tests)
7879 run : ./gradlew assemble -x test
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ buildscript {
66 }
77 }
88 dependencies {
9- classpath(" org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:7.2.2.6593 " )
9+ classpath(" org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:7.2.3.7755 " )
1010 }
1111}
1212apply plugin : org.sonarqube.gradle.SonarQubePlugin
@@ -15,7 +15,6 @@ sonar {
1515 properties {
1616 property " sonar.projectKey" , " BitWeb_java-core-lib"
1717 property " sonar.organization" , " bitweb-oss"
18- property " sonar.host.url" , " https://sonarcloud.io"
1918 property " sonar.exclusions" , " build/generated/**"
2019 }
2120}
You can’t perform that action at this time.
0 commit comments