Skip to content

Commit

Permalink
use jdk 17
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Apr 1, 2023
1 parent 9f2b690 commit 854ac83
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,16 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@master
- name: Setup Java
uses: actions/setup-java@v1
- name: setup jdk
uses: actions/setup-java@v3
with:
java-version: '13.0.1'
- name: Cache build .gradle dir
uses: actions/cache@v1
with:
path: .gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache user .gradle dir
uses: actions/cache@v1
java-version: 17
distribution: adopt
java-package: jdk
architecture: x64
cache: gradle

- name: gradle build
uses: gradle/gradle-build-action@v2
with:
path: ~/.gradle
key: ${{ runner.os }}-gradleuser-${{ hashFiles('**/build.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle Build
run: ./gradlew build

arguments: build --info

0 comments on commit 854ac83

Please sign in to comment.