From 40ea531aae692730c6beac8dc3f0dc262d819bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Marcos?= Date: Sun, 24 Aug 2025 11:47:30 +0200 Subject: [PATCH 1/3] ci: specify plugin versions --- pom.xml | 55 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index f0809ae..0095308 100644 --- a/pom.xml +++ b/pom.xml @@ -154,6 +154,46 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.14.0 + + + org.apache.maven.plugins + maven-surefire-plugin + 3.5.3 + + + org.apache.maven.plugins + maven-surefire-report-plugin + 3.5.3 + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.1 + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.2 + + + org.apache.maven.plugins + maven-source-plugin + 3.3.1 + + + org.apache.maven.plugins + maven-jar-plugin + 3.4.2 + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 5.1.0.4751 + org.jacoco jacoco-maven-plugin @@ -162,20 +202,9 @@ - - org.apache.maven.plugins - maven-compiler-plugin - 3.14.0 - - - org.apache.maven.plugins - maven-surefire-plugin - 3.5.3 - org.apache.maven.plugins maven-source-plugin - 3.3.1 attach-sources @@ -188,7 +217,6 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.11.2 attach-javadocs @@ -201,7 +229,6 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.6.1 enforce-versions @@ -221,7 +248,7 @@ - + From 5d14930784fdeb2c1cc6e70cb03c1341a7271d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Marcos?= Date: Sun, 24 Aug 2025 13:04:53 +0200 Subject: [PATCH 2/3] chore: test if GA works --- .github/workflows/test.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2918079..39bf822 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,7 +9,18 @@ jobs: - name: Set up Java uses: actions/setup-java@v4 with: - java-version: '11' + java-version: | + 11 + 17 distribution: 'temurin' + - name: Print JAVA_HOME locations + run: echo "11) $JAVA_HOME_11_X64 17) $JAVA_HOME_17_X64" - name: Run tests - run: mvn test + env: + SONAR_JAVA_JDKHOME: $JAVA_HOME_11_X64 + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: >- + mvn -B verify sonar:sonar + -Dsonar.java.jdkHome=$JAVA_HOME_11_X64 + -Dsonar.projectKey=pgmarc_space-java-client + -Pcoverage From 84caf9fe361b5ff5aec835d798b92378377429d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Marcos?= Date: Sun, 24 Aug 2025 13:22:29 +0200 Subject: [PATCH 3/3] chore: test if GA works --- .github/workflows/test.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 39bf822..ad6fee1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,11 +13,20 @@ jobs: 11 17 distribution: 'temurin' - - name: Print JAVA_HOME locations - run: echo "11) $JAVA_HOME_11_X64 17) $JAVA_HOME_17_X64" - - name: Run tests + - name: Cache SonarQube packages + uses: actions/cache@v4 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build and analyze env: - SONAR_JAVA_JDKHOME: $JAVA_HOME_11_X64 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: >- mvn -B verify sonar:sonar