diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23ec949..2ace310 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,11 @@ jobs: environment: deployment steps: - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' - name: Get tag id: vars run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} @@ -52,4 +57,4 @@ jobs: -d '{"tag_name": "${{ env.RELEASE_VERSION }}", "name": "${{ env.RELEASE_VERSION }}", "body": "Release of version ${{ env.RELEASE_VERSION }}", "draft": false, "prerelease": false, "generate_release_notes": true}' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_VERSION: ${{ steps.vars.outputs.tag }} \ No newline at end of file + RELEASE_VERSION: ${{ steps.vars.outputs.tag }} diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 9d3182c..067bd0f 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -10,6 +10,11 @@ jobs: environment: deployment steps: - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' - name: Grant execute permission for gradlew run: chmod +x gradlew - name: cache gradle dependencies @@ -28,4 +33,4 @@ jobs: SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.NEXUS_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.NEXUS_PASSWORD }} - SIGNING_PRIVATE_KEY_BASE64: ${{ secrets.SIGNING_PRIVATE_KEY_BASE64 }} \ No newline at end of file + SIGNING_PRIVATE_KEY_BASE64: ${{ secrets.SIGNING_PRIVATE_KEY_BASE64 }}