Skip to content

Commit 41d4d45

Browse files
committed
Add JDK home to sonar project properties
1 parent 17506c4 commit 41d4d45

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/bld.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
4444
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.os == 'ubuntu-latest'
4545
run: rm -rf pom.xml
4646

47+
- name: Add Sonar jdkHome
48+
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.os == 'ubuntu-latest'
49+
run: echo sonar.java.jdkHome=${{ env.JAVA_HOME }} >> sonar-project.properties
50+
4751
- name: SonarCloud Scan
4852
uses: SonarSource/sonarqube-scan-action@v7.0.0
4953
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)