diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c6efe122..c17eb6ae 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,6 +18,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + cache: maven - name: maven-settings-xml-action uses: whelk-io/maven-settings-xml-action@v20 with: @@ -25,11 +31,5 @@ jobs: servers: '[{ "id": "github", "username": "${{ secrets.QQQ_MAVEN_REGISTRY_USERNAME }}", "password": "${{ secrets.QQQ_MAVEN_REGISTRY_PASSWORD }}" }]' - name: Cat settings.xml run: cat /home/runner/.m2/settings.xml - - name: Set up JDK 17 - uses: actions/setup-java@v2 - with: - java-version: '17' - distribution: 'adopt' - cache: maven - name: Build with Maven run: mvn -U -B package --file pom.xml