Skip to content

Commit

Permalink
Use actions/setup-java v4 in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored and bigdaz committed Dec 31, 2023
1 parent c791d32 commit bc72ac9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This GitHub Action can be used to configure Gradle and optionally execute a Grad

## Why use the `gradle-build-action`?

It is possible to directly invoke Gradle in your workflow, and the `actions/setup-java@v3` action provides a simple way to cache Gradle dependencies.
It is possible to directly invoke Gradle in your workflow, and the `actions/setup-java@v4` action provides a simple way to cache Gradle dependencies.

However, the `gradle-build-action` offers a number of advantages over this approach:

Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
Expand Down

0 comments on commit bc72ac9

Please sign in to comment.