Skip to content

Commit d429203

Browse files
authored
Merge pull request #264 from MarkEWaite/use-latest-compiler-plugin
Update pom.xml for recent releases
2 parents f9b7b32 + cb1f461 commit d429203

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

pom.xml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,29 @@
1111
<dependency>
1212
<groupId>junit</groupId>
1313
<artifactId>junit</artifactId>
14-
<version>4.13.1</version>
14+
<version>4.13.2</version>
1515
<scope>test</scope>
1616
</dependency>
1717
</dependencies>
18+
<properties>
19+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20+
</properties>
1821
<build>
22+
<pluginManagement>
23+
<plugins>
24+
<plugin>
25+
<groupId>org.apache.maven.plugins</groupId>
26+
<artifactId>maven-compiler-plugin</artifactId>
27+
<version>3.8.1</version>
28+
</plugin>
29+
</plugins>
30+
</pluginManagement>
1931
<plugins>
2032
<plugin>
2133
<!-- Build an executable JAR -->
2234
<groupId>org.apache.maven.plugins</groupId>
2335
<artifactId>maven-jar-plugin</artifactId>
24-
<version>3.0.2</version>
36+
<version>3.2.0</version>
2537
<configuration>
2638
<archive>
2739
<manifest>
@@ -32,6 +44,26 @@
3244
</archive>
3345
</configuration>
3446
</plugin>
47+
<plugin>
48+
<groupId>org.apache.maven.plugins</groupId>
49+
<artifactId>maven-enforcer-plugin</artifactId>
50+
<version>3.0.0-M3</version>
51+
<executions>
52+
<execution>
53+
<id>enforce-maven</id>
54+
<goals>
55+
<goal>enforce</goal>
56+
</goals>
57+
<configuration>
58+
<rules>
59+
<requireMavenVersion>
60+
<version>[3.5.4,)</version>
61+
</requireMavenVersion>
62+
</rules>
63+
</configuration>
64+
</execution>
65+
</executions>
66+
</plugin>
3567
</plugins>
3668
</build>
3769
</project>

0 commit comments

Comments
 (0)