Skip to content

Commit d579b8e

Browse files
committed
feat: Add Maven frameworks support.
1. Add JUnit Jupiter dependency; 2. Add maven-resources-plugin to fix path problem in SimplexNoise testcase; 3. Add maven-compiler-plugin to tell the default compiler version;
1 parent 837f635 commit d579b8e

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

pom.xml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>algorithm</groupId>
8+
<artifactId>java-algorithm</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<name>java-algorithm</name>
11+
<description>All algorithms implemented in Java (for education)</description>
12+
13+
<properties>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<resources.plugin.version>3.1.0</resources.plugin.version>
16+
<compiler.plugin.version>3.8.0</compiler.plugin.version>
17+
<!-- JDK version-->
18+
<java.version>1.8</java.version>
19+
<file.encoding>UTF-8</file.encoding>
20+
<!-- JUnit Jupiter version -->
21+
<junit-jupiter-api.version>5.5.0</junit-jupiter-api.version>
22+
</properties>
23+
24+
<dependencies>
25+
<dependency>
26+
<groupId>org.junit.jupiter</groupId>
27+
<artifactId>junit-jupiter-api</artifactId>
28+
<version>${junit-jupiter-api.version}</version>
29+
<scope>test</scope>
30+
</dependency>
31+
</dependencies>
32+
33+
<build>
34+
<plugins>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-resources-plugin</artifactId>
38+
<version>${resources.plugin.version}</version>
39+
<configuration>
40+
<encoding>${file.encoding}</encoding>
41+
</configuration>
42+
</plugin>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-compiler-plugin</artifactId>
46+
<version>${compiler.plugin.version}</version>
47+
<configuration>
48+
<source>${java.version}</source>
49+
<target>${java.version}</target>
50+
<encoding>${file.encoding}</encoding>
51+
</configuration>
52+
</plugin>
53+
</plugins>
54+
55+
<resources>
56+
<resource>
57+
<directory>src/main/resources</directory>
58+
</resource>
59+
<resource>
60+
<directory>src/test/resources</directory>
61+
</resource>
62+
</resources>
63+
</build>
64+
</project>

0 commit comments

Comments
 (0)