Skip to content

Commit 95b7440

Browse files
committed
Switch the compiler version to Java 17
1 parent 6f5da29 commit 95b7440

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/setup-java@v4
4949
with:
5050
distribution: temurin
51-
java-version: 8
51+
java-version: 17
5252
java-package: jdk
5353
architecture: x64
5454
cache: maven
@@ -97,7 +97,7 @@ jobs:
9797
uses: actions/setup-java@v4
9898
with:
9999
distribution: temurin
100-
java-version: 8
100+
java-version: 17
101101
java-package: jdk
102102
architecture: x64
103103
cache: maven

.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8
1+
17

pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
<version>${maven-compiler-plugin.version}</version>
180180
<configuration>
181181
<source>${java.version}</source>
182+
<release>${java.version}</release>
182183
<target>${java.version}</target>
183184
<showWarnings>true</showWarnings>
184185
<!-- "fork" needs be enabled to make "compilerArgs" take effect. -->
@@ -190,6 +191,7 @@
190191
<arg>-Xlint:-processing</arg>
191192
<arg>-Xlint:-serial</arg>
192193
</compilerArgs>
194+
<showDeprecation>true</showDeprecation>
193195
<annotationProcessorPaths>
194196
<path>
195197
<groupId>org.apache.logging.log4j</groupId>
@@ -216,7 +218,7 @@
216218
<version>[3.2.0,4)</version>
217219
</requireMavenVersion>
218220
<requireJavaVersion>
219-
<version>[1.8.0,9)</version>
221+
<version>[17,18)</version>
220222
</requireJavaVersion>
221223
</rules>
222224
</configuration>
@@ -260,7 +262,7 @@
260262
</goals>
261263
</execution>
262264
<execution>
263-
<id>flatten.clean</id>
265+
<id>clean-flattened</id>
264266
<phase>clean</phase>
265267
<goals>
266268
<goal>clean</goal>

0 commit comments

Comments
 (0)