From ad5a0cc638c557db92a90f82bffbe3bbe6ab7cd6 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Wed, 27 Mar 2024 16:48:39 +0100 Subject: [PATCH] Added Java matrix build --- .github/workflows/maven.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e87a8426..8297395b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,13 +25,17 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + java: [ '11', '17', '21' ] + name: Java ${{ matrix.Java }} build steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 + - name: Set up JDK ${{ matrix.Java }} uses: actions/setup-java@v4 with: - java-version: '11' + java-version: ${{ matrix.Java }} distribution: 'adopt' server-id: ossrh server-username: MAVEN_USERNAME