Skip to content

Commit

Permalink
Updated maven.yml to use Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRoeder authored Sep 19, 2024
1 parent b6e976c commit e7d40cc
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Compile project
run: mvn clean compile -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Run tests
Expand Down

0 comments on commit e7d40cc

Please sign in to comment.