Skip to content

Commit 8f96c06

Browse files
committed
Update Sonar scanner version
1 parent 9d34283 commit 8f96c06

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
env:
1212
DEFAULT_JAVA_VERSION: '17'
13+
SONAR_JAVA_VERSION: '21'
1314

1415
jobs:
1516

@@ -45,7 +46,7 @@ jobs:
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 }}
@@ -72,7 +73,7 @@ jobs:
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

sonarcloud.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}
1212
apply 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
}

0 commit comments

Comments
 (0)