Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
Bump Java for workflows to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed Apr 22, 2022
1 parent 74dde09 commit 9391f54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@ on:

jobs:
build:

name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
java-version: 17
cache: 'maven'

- name: Build
run: ./mvnw -V --no-transfer-progress -e clean verify
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up Maven Central
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
java-version: 17
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_TOKEN
Expand Down

0 comments on commit 9391f54

Please sign in to comment.