diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-publish.yml similarity index 90% rename from .github/workflows/maven.yml rename to .github/workflows/maven-publish.yml index 17f8932f6..7dc942a30 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven-publish.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