diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index dad694833..a35274835 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11] + java: [8] name: Java ${{ matrix.java }} building ... steps: @@ -26,5 +26,11 @@ jobs: java-version: ${{ matrix.java }} distribution: 'temurin' cache: maven + server-id: sonatype-nexus-snapshots + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD - name: Build with Maven run: mvn -B package --file pom.xml -DdisableXmlReport=true -Djacoco.skip=true -Dpmd.skip=true + env: + MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}