From 66a8b5f02ec395388a819508a682cc26c8122c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20N=C3=B6hles?= Date: Tue, 11 Jun 2024 19:07:03 +0200 Subject: [PATCH] Use gradle 8.7 Optimize workflows --- .github/workflows/build.yml | 7 ++++++- .github/workflows/codestyle.yml | 7 ++++++- .github/workflows/publish.yml | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b2c86b..ed5a2a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,5 +19,10 @@ jobs: java-version: '20' cache: 'gradle' + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + with: + gradle-version: 8.7 + - name: Test Gradle Build - run: ./gradlew build --dry-run \ No newline at end of file + run: gradle build --dry-run \ No newline at end of file diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 1d7a16c..ea13461 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -19,5 +19,10 @@ jobs: java-version: '20' cache: 'gradle' + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + with: + gradle-version: 8.7 + - name: Check code style - run: ./gradlew spotlessCheck \ No newline at end of file + run: gradle spotlessCheck \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 227a372..56e5b4f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,11 +23,16 @@ jobs: java-version: '20' cache: 'gradle' + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + with: + gradle-version: 8.7 + - name: Create new buildx builder run: docker buildx create --name custom_builder --use - name: Build application - run: ./gradlew build -Dquarkus.package.jar.type=uber-jar + run: gradle build -Dquarkus.package.jar.type=uber-jar - name: Build images run: docker buildx build --platform=linux/amd64 --platform=linux/arm64 -t easybill/peppol-bis-billing-validator:${{github.ref_name}} -t easybill/peppol-bis-billing-validator:latest . --push