Skip to content

Commit 024bca3

Browse files
committed
Update sonar-m-p to 5.5.0.6356
Execute Sonar run with Java 21 (Java 17 is deprecated for Sonar) Update Actions to Node.js 24 compliant versions
1 parent 47462e0 commit 024bca3

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Git clone
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
3232
- name: Set up JDK 11
33-
uses: actions/setup-java@v4
33+
uses: actions/setup-java@v5
3434
with:
3535
java-version: 11
3636
distribution: temurin
@@ -57,7 +57,7 @@ jobs:
5757
# executing ITs requires installing artifacts to the local repository
5858
run: mvn -B ${{ env.MVN_GOAL }} ${{ env.MVN_ADDITIONAL_OPTS }} -Pcoverage,integrationTesting,javadoc -Dorg.ops4j.pax.url.mvn.repositories="https://repo1.maven.org/maven2@id=central"
5959
- name: Upload build result
60-
uses: actions/upload-artifact@v4
60+
uses: actions/upload-artifact@v6
6161
with:
6262
name: compiled-classes-and-coverage
6363
# compare with https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/languages/java/#java-analysis-and-bytecode
@@ -72,23 +72,23 @@ jobs:
7272
runs-on: ubuntu-latest
7373
needs: build
7474
# not supported on forks, https://portal.productboard.com/sonarsource/1-sonarqube-cloud/c/50-sonarcloud-analyzes-external-pull-request
75-
if: ${{ github.repository == 'apache/jackrabbit' }}
75+
if: ${{ github.repository == 'apache/jackrabbit' }}
7676
steps:
77-
- uses: actions/checkout@v4
77+
- uses: actions/checkout@v6
7878
with:
7979
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
80-
- name: Set up JDK 17
81-
uses: actions/setup-java@v4
80+
- name: Set up JDK 21
81+
uses: actions/setup-java@v5
8282
with:
83-
java-version: 17
83+
java-version: 21
8484
distribution: temurin
8585
cache: maven
8686
- name: Download compiled classes
8787
uses: actions/download-artifact@v4
8888
with:
8989
name: compiled-classes-and-coverage
9090
- name: Cache SonarQube packages
91-
uses: actions/cache@v4
91+
uses: actions/cache@v5
9292
with:
9393
path: ~/.sonar/cache
9494
key: ${{ runner.os }}-sonar
@@ -97,4 +97,4 @@ jobs:
9797
env:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
9999
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
100-
run: SONAR_SCANNER_JAVA_OPTS="-Xmx8g" mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:5.1.0.4751:sonar -Dsonar.projectKey=apache_jackrabbit -Dsonar.organization=apache -Dsonar.scanner.skipJreProvisioning=true
100+
run: SONAR_SCANNER_JAVA_OPTS="-Xmx8g" mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:5.5.0.6356:sonar -Dsonar.projectKey=apache_jackrabbit -Dsonar.organization=apache -Dsonar.scanner.skipJreProvisioning=true

0 commit comments

Comments
 (0)