Skip to content

Commit f558d87

Browse files
committed
Use shared workflow for the Maven build
Having shared workflow will ease the maintenance as changes to the build, especially the Java version, need to be done in single place.
1 parent 21fc8ba commit f558d87

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/workflows/maven.yml

+2-23
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,5 @@ on: [push, pull_request]
2121

2222
jobs:
2323
build:
24-
name: Java ${{ matrix.java }} (${{ matrix.distribution }}) - ${{ matrix.os }}
25-
runs-on: ${{ matrix.os }}
26-
strategy:
27-
fail-fast: false
28-
matrix:
29-
os: ['ubuntu-latest', 'windows-latest', 'macOS-latest']
30-
java: ['8', '11', '17', '18']
31-
distribution: ['temurin']
32-
include:
33-
- java: '19-ea'
34-
distribution: 'zulu'
35-
os: 'ubuntu-latest'
36-
steps:
37-
- name: Checkout
38-
uses: actions/checkout@v3
39-
- name: Set up JDK ${{ matrix.Java }} (${{ matrix.distribution }})
40-
uses: actions/setup-java@v3
41-
with:
42-
distribution: ${{ matrix.distribution }}
43-
java-version: ${{ matrix.java }}
44-
cache: 'maven'
45-
- name: Build with Maven
46-
run: mvn install javadoc:javadoc -e -B -V
24+
name: Build it
25+
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master

0 commit comments

Comments
 (0)