Skip to content

Commit

Permalink
Set up Maven 4 test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero committed Nov 3, 2024
1 parent f18c942 commit c6cf015
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 7 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-maven-4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build
on:
push:
branches:
- main
paths-ignore:
- '*.adoc'
- docs/**
pull_request:
branches:
- main
paths-ignore:
- '*.adoc'
- docs/**

jobs:
build:
name: Build Maven 4
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/[email protected]
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 -Dmaven.version=${{ matrix.maven }} -Dplexus-utils.version=4.0.2

18 changes: 11 additions & 7 deletions asciidoctor-maven-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
</description>
<url>https://github.com/asciidoctor/asciidoctor-maven-plugin</url>

<properties>
<plexus-utils.version>3.5.1</plexus-utils.version>
</properties>

<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
Expand All @@ -36,20 +40,20 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.5.1</version>
<version>${plexus-utils.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-sink-api</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
<artifactId>doxia-core</artifactId>
<version>${doxia.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-core</artifactId>
<version>2.0.0</version>
<scope>compile</scope>
<artifactId>doxia-sink-api</artifactId>
<version>${doxia.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down

0 comments on commit c6cf015

Please sign in to comment.