Skip to content

Commit cceee99

Browse files
committed
maven-compiler-plugin: set release parameter to 8
For JDK 9+, this should pass the --release option to the javac executable which is the preferred form. The source/target options remain available for building with Java 8.
1 parent 5995e84 commit cceee99

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,12 @@
213213
<plugin>
214214
<groupId>org.apache.maven.plugins</groupId>
215215
<artifactId>maven-compiler-plugin</artifactId>
216-
<version>3.7.0</version>
216+
<version>3.14.0</version>
217217
<!-- Require the Java 8 platform. -->
218218
<configuration>
219-
<source>1.8</source>
220-
<target>1.8</target>
219+
<release>8</release>
220+
<source>8</source>
221+
<target>8</target>
221222
</configuration>
222223
</plugin>
223224

0 commit comments

Comments
 (0)