From d27f3831541a018d98157c6f0b3bbd2650f123d6 Mon Sep 17 00:00:00 2001 From: Radoslav Husar Date: Wed, 18 Sep 2024 16:29:02 +0200 Subject: [PATCH 1/2] MODCLUSTER-837 CI: Add Javadoc aggregate build to the testing pipeline --- .github/workflows/ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34373726..b3d2dd4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,15 +39,25 @@ jobs: distribution: temurin java-version: ${{ matrix.java-runtime }} - name: Build with Maven using JDK ${{ matrix.java-runtime }} - # To support Windows PowerShell, a space between -D property=true is required. - run: mvn --batch-mode --no-transfer-progress verify --define net.bytebuddy.experimental=true --define maven.main.skip=true + # To support Windows PowerShell, a space between --define property=true is required. + run: mvn --batch-mode --no-transfer-progress --define net.bytebuddy.experimental=true --define maven.main.skip=true verify # Code Coverage (runs once per matrix) - name: Build with coverage with Maven using JDK ${{ matrix.runtime }} if: ${{ matrix.java-compilation == '17' && matrix.java-runtime == '11' && matrix.os == 'ubuntu-latest' }} - run: mvn --batch-mode --no-transfer-progress --activate-profiles=coverage verify --define maven.main.skip=true + run: mvn --batch-mode --no-transfer-progress --activate-profiles=coverage --define maven.main.skip=true verify - name: Upload JaCoCo report if: ${{ matrix.java-compilation == '17' && matrix.java-runtime == '11' && matrix.os == 'ubuntu-latest' }} uses: actions/upload-artifact@v4 with: name: jacoco - path: code-coverage/target/site/jacoco-aggregate + path: code-coverage/target/site/jacoco-aggregate/ + # Aggregate Javadoc (runs once per matrix) + - name: Build aggregate Javadoc with Maven using JDK ${{ matrix.runtime }} + if: ${{ matrix.java-compilation == '17' && matrix.java-runtime == '17' && matrix.os == 'ubuntu-latest' }} + run: mvn --batch-mode --no-transfer-progress --define skipTests=true verify javadoc:aggregate + - name: Upload aggregate Javadoc + if: ${{ matrix.java-compilation == '17' && matrix.java-runtime == '17' && matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v4 + with: + name: apidocs + path: target/site/apidocs/ \ No newline at end of file From 8070f4088f4854305c31cfe735c97d56c4bd8da6 Mon Sep 17 00:00:00 2001 From: Radoslav Husar Date: Wed, 18 Sep 2024 10:57:46 +0200 Subject: [PATCH 2/2] MODCLUSTER-836 Building the aggregate Javadoc site fails the build --- pom.xml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index bd4edf40..37b1b90d 100644 --- a/pom.xml +++ b/pom.xml @@ -232,15 +232,10 @@ org.apache.maven.plugins maven-javadoc-plugin - - - - - javax.annotation - javax.annotation-api - 1.3.2 - - + + mod_cluster-container-tomcat-9.0,mod_cluster-container-tomcat-10.1 ${jdk.release.version}