Skip to content

Commit 909c32b

Browse files
committed
releng: set target Java version in a way that affects m-javadoc-p as
well
1 parent 7f31c8a commit 909c32b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

pom.xml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151

5252
<properties>
5353
<maven.version>3.5.4</maven.version>
54-
<java.target.version>8</java.target.version> <!-- used for compiler plugin and animal-sniffer, for compatibility reasons with Java 9 only the values 6,7,8 and 9 is allowed -->
54+
<java.target.version>8</java.target.version> <!-- used for compiler plugin, javadoc plugin and animal-sniffer, for compatibility reasons with Java 9 only the values 6,7,8 and 9 is allowed -->
55+
<maven.compiler.source>1.${java.target.version}</maven.compiler.source>
56+
<maven.compiler.target>1.${java.target.version}</maven.compiler.target>
5557
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5658
<arguments /> <!-- additional arguments for the forked Maven run during releases -->
5759
</properties>
@@ -232,14 +234,6 @@
232234
</execution>
233235
</executions>
234236
</plugin>
235-
<plugin>
236-
<groupId>org.apache.maven.plugins</groupId>
237-
<artifactId>maven-compiler-plugin</artifactId>
238-
<configuration>
239-
<source>1.${java.target.version}</source>
240-
<target>1.${java.target.version}</target>
241-
</configuration>
242-
</plugin>
243237
<!-- check with animal sniffer (http://www.mojohaus.org/animal-sniffer/), should only be used in JDKs prior version 9 -->
244238
<plugin>
245239
<groupId>org.codehaus.mojo</groupId>

0 commit comments

Comments
 (0)