Skip to content

Commit

Permalink
Refactor setup-gradle tasks (#209)
Browse files Browse the repository at this point in the history
* Use gradle wrapper

* Fix
  • Loading branch information
rogervinas authored Jul 22, 2024
1 parent a1ff9a6 commit 04ca1c2
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 65 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/http4k.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: http4k-app
- name: Build
working-directory: http4k-app
run: ./gradlew build
24 changes: 11 additions & 13 deletions .github/workflows/ktor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: ktor-app
- name: Build
working-directory: ktor-app
run: ./gradlew build
24 changes: 11 additions & 13 deletions .github/workflows/micronaut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: micronaut-app
- name: Build
working-directory: micronaut-app
run: ./gradlew build
24 changes: 11 additions & 13 deletions .github/workflows/quarkus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: quarkus-app
- name: Build
working-directory: quarkus-app
run: ./gradlew build
24 changes: 11 additions & 13 deletions .github/workflows/springboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: springboot-app
- name: Build
working-directory: springboot-app
run: ./gradlew build

0 comments on commit 04ca1c2

Please sign in to comment.