diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 7e74fcf..8393038 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -13,11 +13,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 + - name: Set up JDK 8 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '8' + cache: 'maven' - name: Build with Maven run: mvn -B package --file pom.xml --no-transfer-progress --batch-mode @@ -26,7 +27,7 @@ jobs: uses: actions/setup-java@v3 with: # running setup-java again overwrites the settings.xml distribution: 'temurin' - java-version: '11' + java-version: '8' cache: 'maven' server-id: maven-central # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy