Skip to content

Commit 894090d

Browse files
committed
build: pin down target Java version using more comprehensible property
1 parent 85df3b4 commit 894090d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
<properties>
2929
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30-
<maven.compiler.source>17</maven.compiler.source>
31-
<maven.compiler.target>17</maven.compiler.target>
30+
<jdk.version>${jdk.version}</jdk.version>
31+
3232
<!-- Official Maven Plugins -->
3333
<maven-plugin-api.version>3.8.2</maven-plugin-api.version>
3434
<maven-plugin-annotations.version>3.6.4</maven-plugin-annotations.version>
@@ -168,7 +168,7 @@
168168
<plugin>
169169
<artifactId>maven-compiler-plugin</artifactId>
170170
<configuration>
171-
<release>17</release>
171+
<release>${jdk.version}</release>
172172
</configuration>
173173
</plugin>
174174
<plugin>
@@ -228,7 +228,7 @@
228228
<groupId>org.apache.maven.plugins</groupId>
229229
<artifactId>maven-javadoc-plugin</artifactId>
230230
<configuration>
231-
<source>17</source>
231+
<source>${jdk.version}</source>
232232
<detectJavaApiLink>false</detectJavaApiLink>
233233
</configuration>
234234
<executions>

0 commit comments

Comments
 (0)