Skip to content

Commit 4c0a902

Browse files
committed
Use maven.compiler.release property and target 17 to suppress warnings
1 parent c0740c0 commit 4c0a902

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses:
2323
AdoptOpenJDK/install-jdk@v1
2424
with:
25-
version: '11'
25+
version: '17'
2626
- name: test maven
2727
run: |
2828
cd maven

maven/pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13-
<java.version>1.8</java.version>
13+
<maven.compiler.release>17</maven.compiler.release>
1414
</properties>
1515

1616
<dependencyManagement>
@@ -71,11 +71,6 @@
7171
<groupId>org.apache.maven.plugins</groupId>
7272
<artifactId>maven-compiler-plugin</artifactId>
7373
<version>3.13.0</version>
74-
<configuration>
75-
<encoding>UTF-8</encoding>
76-
<source>${java.version}</source>
77-
<target>${java.version}</target>
78-
</configuration>
7974
</plugin>
8075
<plugin>
8176
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)