Skip to content

Commit 16f6430

Browse files
committed
mvn: Update to Java 17 (from 8)
1 parent 6e9ec1a commit 16f6430

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

modules/parent/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ SPDX-License-Identifier: CC0-1.0
1616
<project.build.encoding>UTF-8</project.build.encoding>
1717
<project.build.sourceEncoding>${project.build.encoding}</project.build.sourceEncoding>
1818
<project.build.resourceEncoding>${project.build.encoding}</project.build.resourceEncoding>
19-
<java.old.version>8</java.old.version>
20-
<java.old.home>${env.JAVA_8_HOME}</java.old.home>
19+
<java.old.version>17</java.old.version>
20+
<java.old.home>${env.JAVA_17_HOME}</java.old.home>
2121
<!-- NOTE This works for reactor/aggregation & child module builds. -->
2222
<root.basedir>${project.basedir}/../parent</root.basedir>
2323
</properties>
@@ -164,8 +164,7 @@ SPDX-License-Identifier: CC0-1.0
164164
<artifactId>maven-compiler-plugin</artifactId>
165165
<version>3.13.0</version>
166166
<configuration>
167-
<source>1.${java.old.version}</source>
168-
<target>1.${java.old.version}</target>
167+
<release>${java.old.version}</release>
169168
<encoding>${project.build.sourceEncoding}</encoding>
170169
<showDeprecation>true</showDeprecation>
171170
<compilerArgument>-Xlint:unchecked</compilerArgument>
@@ -634,8 +633,7 @@ SPDX-License-Identifier: CC0-1.0
634633
<groupId>org.apache.maven.plugins</groupId>
635634
<artifactId>maven-compiler-plugin</artifactId>
636635
<configuration>
637-
<source>1.${java.old.version}</source>
638-
<target>1.${java.old.version}</target>
636+
<release>${java.old.version}</release>
639637
<encoding>${project.build.sourceEncoding}</encoding>
640638
<showDeprecation>true</showDeprecation>
641639
<compilerArgument>-Xlint:unchecked</compilerArgument>

0 commit comments

Comments
 (0)