diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 2534dd1e..324fa1da 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -11,13 +11,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 # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME