Skip to content

Commit

Permalink
Fix workflow to use Java 17 with latest maven compiler plugin
Browse files Browse the repository at this point in the history
(older/inferred versions didn't support maven.compiler.relase property)
  • Loading branch information
BalusC committed Sep 5, 2024
1 parent 6fbc52d commit 413ab85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/jakartified.maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Test with Maven
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@
</executions>
</plugin>

<!-- Configure the compiler. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>

<!-- Configure the jar with the binaries and test binaries. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 413ab85

Please sign in to comment.