Skip to content

Commit 738df36

Browse files
committed
Set the java version and encoding through properties rather than plugin definition
1 parent 42bd730 commit 738df36

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

pom.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
<url>https://github.com/fluent/fluent-logger-java/issues</url>
4444
</issueManagement>
4545

46+
<properties>
47+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
49+
50+
<!-- maven-compiler-plugin config -->
51+
<maven.compiler.source>6</maven.compiler.source>
52+
<maven.compiler.target>6</maven.compiler.target>
53+
</properties>
54+
4655
<dependencies>
4756
<dependency>
4857
<groupId>org.msgpack</groupId>
@@ -87,15 +96,6 @@
8796
</testResources>
8897

8998
<plugins>
90-
<plugin>
91-
<artifactId>maven-compiler-plugin</artifactId>
92-
<version>2.3.2</version>
93-
<configuration>
94-
<source>1.6</source>
95-
<target>1.6</target>
96-
<encoding>UTF-8</encoding>
97-
</configuration>
98-
</plugin>
9999
<plugin>
100100
<artifactId>maven-assembly-plugin</artifactId>
101101
<version>2.2</version>
@@ -153,7 +153,6 @@
153153
<doctitle>${project.name} ${project.version} API</doctitle>
154154
<aggregate>true</aggregate>
155155
<locale>en_US</locale>
156-
<encoding>UTF-8</encoding>
157156
</configuration>
158157
</plugin>
159158
<plugin>
@@ -177,7 +176,6 @@
177176
<doctitle>${project.name} ${project.version} API</doctitle>
178177
<aggregate>true</aggregate>
179178
<locale>en_US</locale>
180-
<encoding>UTF-8</encoding>
181179
</configuration>
182180
</plugin>
183181
<plugin>

0 commit comments

Comments
 (0)