From 7b5fae97320fa809fcc3e2cb0505727bad89813e Mon Sep 17 00:00:00 2001 From: brinxmat <789709+brinxmat@users.noreply.github.com> Date: Sat, 6 May 2023 01:27:08 +0200 Subject: [PATCH 1/2] Update pipeline code --- .github/workflows/gradle.yml | 20 ++++---------------- .github/workflows/maven-central.yml | 15 +++++---------- 2 files changed, 9 insertions(+), 26 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 46aec1280..86ea141a6 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -12,27 +12,15 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 1.11 + - name: Set up JDK uses: actions/setup-java@v3 with: - java-version: '11' + java-version: '17' distribution: 'corretto' - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: install jq - run: sudo apt-get install -y jq - - - name: Cache Gradle packages - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle + cache: 'gradle' - name: Build with Gradle - run: ./gradlew build --info + run: ./gradlew build --info --no-daemon - name: Codacy Coverage Reporter uses: codacy/codacy-coverage-reporter-action@v1 diff --git a/.github/workflows/maven-central.yml b/.github/workflows/maven-central.yml index 3d9d523d3..88d9a7b56 100644 --- a/.github/workflows/maven-central.yml +++ b/.github/workflows/maven-central.yml @@ -11,21 +11,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.11 - uses: actions/setup-java@v1 + - name: Set up JDK + uses: actions/setup-java@v3 with: - java-version: 1.11 + java-version: '17' + distribution: 'corretto' + cache: 'gradle' - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Cache Gradle packages - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle - - name: Build with Gradle env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }} From a0d2f6f313b43f5d1eea39e7ba44ab10fee999e1 Mon Sep 17 00:00:00 2001 From: brinxmat <789709+brinxmat@users.noreply.github.com> Date: Sat, 6 May 2023 01:33:36 +0200 Subject: [PATCH 2/2] Use checkout v3 --- .github/workflows/maven-central.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/maven-central.yml b/.github/workflows/maven-central.yml index 88d9a7b56..3ce1c6126 100644 --- a/.github/workflows/maven-central.yml +++ b/.github/workflows/maven-central.yml @@ -10,7 +10,7 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK uses: actions/setup-java@v3 with: @@ -18,9 +18,6 @@ jobs: distribution: 'corretto' cache: 'gradle' - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}