Skip to content

Commit de9f8e4

Browse files
Update sonarcloud.yml
Fix 'Set up Jdk' job which is failing on pr's
1 parent eac6902 commit de9f8e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ jobs:
1616
- uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
19-
- name: Set up JDK 11
19+
- name: Set up JDK
2020
uses: actions/setup-java@v3
2121
with:
22-
java-version: 11
22+
java-version: 17
23+
distribution: 'adopt'
24+
cache: gradle
2325
- name: Cache SonarCloud packages
2426
uses: actions/cache@v3
2527
with:
@@ -36,4 +38,4 @@ jobs:
3638
env:
3739
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3840
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39-
run: ./gradlew build sonarqube --info
41+
run: ./gradlew build sonarqube --info

0 commit comments

Comments
 (0)