Skip to content

Commit ada6d0f

Browse files
committed
use release for m-compiler-p and m-javadoc-p #
1 parent c6744e3 commit ada6d0f

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

pom.xml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
</execution>
362362
</executions>
363363
<configuration>
364-
<source>${jdk.version}</source>
364+
<release>${jdk.version}</release>
365365
<failOnError>true</failOnError>
366366
<failOnWarnings>false</failOnWarnings>
367367
<additionalOptions>${maven.javadoc.additionalOptions}</additionalOptions>
@@ -519,47 +519,11 @@
519519
</execution>
520520
</executions>
521521
</plugin>
522-
<!-- <plugin>-->
523-
<!-- <groupId>org.apache.maven.plugins</groupId>-->
524-
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
525-
<!-- <version>${maven.compiler.version}</version>-->
526-
<!-- <executions>-->
527-
<!-- <execution>-->
528-
<!-- <id>default-compile</id>-->
529-
<!-- <configuration>-->
530-
<!-- <release>9</release>-->
531-
<!-- &lt;!&ndash; no excludes: compile everything to ensure module-info contains right entries &ndash;&gt;-->
532-
<!-- </configuration>-->
533-
<!-- </execution>-->
534-
<!-- <execution>-->
535-
<!-- <id>base-compile</id>-->
536-
<!-- <goals>-->
537-
<!-- <goal>compile</goal>-->
538-
<!-- </goals>-->
539-
<!-- <configuration>-->
540-
<!-- &lt;!&ndash; recompile everything for target VM except the module-info.java &ndash;&gt;-->
541-
<!-- <excludes>-->
542-
<!-- <exclude>module-info.java</exclude>-->
543-
<!-- </excludes>-->
544-
<!-- </configuration>-->
545-
<!-- </execution>-->
546-
<!-- </executions>-->
547-
<!-- &lt;!&ndash; defaults for compile and testCompile &ndash;&gt;-->
548-
<!-- <configuration>-->
549-
<!-- <release>${jdk.version}</release>-->
550-
<!--&lt;!&ndash; &lt;!&ndash; Only required when Maven runtime JAVA_HOME isn't at least Java 9 and when haven't configured the maven-toolchains-plugin &ndash;&gt;&ndash;&gt;-->
551-
<!--&lt;!&ndash; <jdkToolchain>&ndash;&gt;-->
552-
<!--&lt;!&ndash; <version>9</version>&ndash;&gt;-->
553-
<!--&lt;!&ndash; </jdkToolchain>&ndash;&gt;-->
554-
<!-- </configuration>-->
555-
<!-- </plugin>-->
556522
<plugin>
557523
<groupId>org.apache.maven.plugins</groupId>
558524
<artifactId>maven-compiler-plugin</artifactId>
559525
<version>${maven.compiler.version}</version>
560526
<configuration>
561-
<source>${jdk.version}</source>
562-
<target>${jdk.version}</target>
563527
<release>${jdk.version}</release>
564528
<encoding>${project.build.sourceEncoding}</encoding>
565529
</configuration>

0 commit comments

Comments
 (0)