Skip to content

Commit 413ab85

Browse files
committed
Fix workflow to use Java 17 with latest maven compiler plugin
(older/inferred versions didn't support maven.compiler.relase property)
1 parent 6fbc52d commit 413ab85

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/jakartified.maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030

3131
steps:
3232
- uses: actions/checkout@v2
33-
- name: Set up JDK 11
33+
- name: Set up JDK 17
3434
uses: actions/setup-java@v2
3535
with:
36-
java-version: '11'
36+
java-version: '17'
3737
distribution: 'adopt'
3838
cache: maven
3939
- name: Test with Maven

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@
151151
</executions>
152152
</plugin>
153153

154+
<!-- Configure the compiler. -->
155+
<plugin>
156+
<groupId>org.apache.maven.plugins</groupId>
157+
<artifactId>maven-compiler-plugin</artifactId>
158+
<version>3.13.0</version>
159+
</plugin>
160+
154161
<!-- Configure the jar with the binaries and test binaries. -->
155162
<plugin>
156163
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)