From 5c842f366717150b0ef3c76c0d9ed1fc719e29f4 Mon Sep 17 00:00:00 2001 From: Abel Salgado Romero Date: Sun, 3 Nov 2024 13:34:40 +0100 Subject: [PATCH] Set up Maven 4 test pipeline (#975) --- .github/workflows/build-maven-4.yaml | 43 ++++++++++++++++++++++++++++ asciidoctor-maven-commons/pom.xml | 18 +++++++----- 2 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/build-maven-4.yaml diff --git a/.github/workflows/build-maven-4.yaml b/.github/workflows/build-maven-4.yaml new file mode 100644 index 00000000..ddfd1a28 --- /dev/null +++ b/.github/workflows/build-maven-4.yaml @@ -0,0 +1,43 @@ +name: Maven 4 +on: + push: + branches: + - main + paths-ignore: + - '*.adoc' + - docs/** + pull_request: + branches: + - main + paths-ignore: + - '*.adoc' + - docs/** + +jobs: + build: + name: Build + strategy: + fail-fast: false + max-parallel: 12 + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + java: + - 17 + - 21 + maven: + - 4.0.0-beta-5 + runs-on: ${{ matrix.os }} + steps: + - uses: s4u/setup-maven-action@v1.15.0 + with: + java-distribution: 'temurin' + java-version: ${{ matrix.java }} + maven-version: ${{ matrix.maven }} + - name: Maven version + run: mvn -version + - name: Build & Test + run: mvn -B -Prun-its clean verify -D"maven.version=${{ matrix.maven }}" -D"plexus-utils.version=4.0.2" + diff --git a/asciidoctor-maven-commons/pom.xml b/asciidoctor-maven-commons/pom.xml index 3c427e21..d41012c6 100644 --- a/asciidoctor-maven-commons/pom.xml +++ b/asciidoctor-maven-commons/pom.xml @@ -21,6 +21,10 @@ https://github.com/asciidoctor/asciidoctor-maven-plugin + + 3.5.1 + + org.asciidoctor @@ -36,20 +40,20 @@ org.codehaus.plexus plexus-utils - 3.5.1 + ${plexus-utils.version} compile org.apache.maven.doxia - doxia-sink-api - 2.0.0 - provided + doxia-core + ${doxia.version} + compile org.apache.maven.doxia - doxia-core - 2.0.0 - compile + doxia-sink-api + ${doxia.version} + provided