diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 86d5335..3716c11 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -1,4 +1,4 @@
-name: Build & Test (8 & 21)
+name: Build & Test (8, 11, 17, 21, 25)
on:
push:
@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- java: [8, 21]
+ java: [8, 11, 17, 21, 25]
steps:
- uses: actions/checkout@v4
@@ -28,4 +28,29 @@ jobs:
java-version: ${{ matrix.java }}
cache: maven
- name: Build with Maven
- run: mvn -B package --file pom.xml
+ run: mvn -B package --file pom.xml -Dgpg.skip=true
+
+ sonarcloud:
+ runs-on: ubuntu-latest
+ needs: build
+ if: >-
+ github.event_name == 'push' ||
+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ distribution: temurin
+ java-version: 17
+ cache: maven
+ - name: SonarCloud analysis
+ env:
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ run: >-
+ mvn -B verify sonar:sonar -Dgpg.skip=true
+ -Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }}
+ -Dsonar.organization=${{ secrets.SONAR_ORGANIZATION }}
+ -Dsonar.host.url=https://sonarcloud.io
diff --git a/pom.xml b/pom.xml
index 90a5411..6848531 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,7 +48,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 3.0.0-M5
+ 3.5.2
org.jacoco
@@ -79,7 +79,7 @@
org.apache.maven.plugins
maven-source-plugin
- 2.2.1
+ 3.3.1
@@ -103,9 +103,9 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.4.0
+ 3.11.2
- 11
+ 1.8
@@ -119,7 +119,7 @@
org.apache.maven.plugins
maven-gpg-plugin
- 1.5
+ 3.2.7
sign-artifacts
@@ -133,7 +133,7 @@
org.sonatype.plugins
nexus-staging-maven-plugin
- 1.6.13
+ 1.7.0
true
ossrh