Skip to content

Commit

Permalink
[#177] set maven.compiler.source instead of configuring the compiler-…
Browse files Browse the repository at this point in the history
…plugin directly.
  • Loading branch information
bmarwell committed Jun 2, 2021
1 parent af0b7ed commit a2afaba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pom.xml
Expand Up @@ -196,6 +196,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mojo.javadoc.mavenVersion>${project.prerequisites.maven}</mojo.javadoc.mavenVersion>
<mojo.java.target>1.7</mojo.java.target>
<maven.compiler.source>${mojo.java.target}</maven.compiler.source>
<maven.compiler.target>${mojo.java.target}</maven.compiler.target>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- NOTE: We deliberately do not set maven.test.redirectTestOutputToFile here to workaround MNG-1992 -->
<surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
Expand Down Expand Up @@ -287,10 +289,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${mojo.java.target}</source>
<target>${mojo.java.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit a2afaba

Please sign in to comment.