Skip to content

Commit

Permalink
Reduce maven-compiler-plugin config by using user properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nhojpatrick committed Feb 15, 2021
1 parent fab9768 commit b04c0ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@
</distributionManagement>

<properties>
<java.version>1.7</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.custom.encoding>UTF-8</project.custom.encoding>
<project.custom.java.version>1.7</project.custom.java.version>
<maven.compiler.source>${project.custom.java.version}</maven.compiler.source>
<maven.compiler.target>${project.custom.java.version}</maven.compiler.target>
<project.build.outputEncoding>${project.custom.encoding}</project.build.outputEncoding>
<project.build.sourceEncoding>${project.custom.encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${project.custom.encoding}</project.reporting.outputEncoding>
<maven-plugin-plugin.version>3.6.0</maven-plugin-plugin.version>
</properties>

Expand Down Expand Up @@ -100,11 +105,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit b04c0ae

Please sign in to comment.