Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
170 lines (156 loc) · 5.82 KB
/
Copy pathpom.xml
File metadata and controls
170 lines (156 loc) · 5.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jwetherell</groupId>
<artifactId>java-algorithms-implementation</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>Java : Algorithms and Data Structure</name>
<description>Algorithms and Data Structures implemented in Java</description>
<url>https://github.com/phishman3579/java-algorithms-implementation</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>phishman3579</id>
<name>Justin Wetherell</name>
<email>phishman3579@gmail.com</email>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Java 25 is the current LTS. Java 27, the latest feature release, also builds and
tests clean (see .github/workflows/ci.yml). -->
<maven.compiler.release>25</maven.compiler.release>
<junit.version>6.1.3</junit.version>
<!-- Overridden by the benchmark-* profiles below. -->
<benchmark.mainClass>com.jwetherell.algorithms.sorts.timing.SortsTiming</benchmark.mainClass>
</properties>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- Keep the historical src/ and test/ layout so existing links and history stay valid. -->
<sourceDirectory>${project.basedir}/src</sourceDirectory>
<testSourceDirectory>${project.basedir}/test</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.16.0</version>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-serial</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<!-- Mirrors the historical Ant batchtest pattern: run every class in a **/test/
package, but not the shared helpers in **/test/common/. -->
<includes>
<include>**/test/*.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>com.jwetherell.algorithms</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<!-- Replaces the historical `ant <name>` benchmark targets. Forks a separate JVM so
that the timings are not distorted by Maven's own JVM. Run, for example:
mvn -Pbenchmark-sorts test-compile exec:exec -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<executable>java</executable>
<!-- The harnesses live in test/, so the test classpath is required. -->
<classpathScope>test</classpathScope>
<arguments>
<argument>-server</argument>
<argument>-Xmx3g</argument>
<argument>-classpath</argument>
<classpath/>
<argument>${benchmark.mainClass}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>benchmark-sorts</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.sorts.timing.SortsTiming</benchmark.mainClass>
</properties>
</profile>
<profile>
<id>benchmark-data_structures</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.data_structures.timing.DataStructuresTiming</benchmark.mainClass>
</properties>
</profile>
<profile>
<id>benchmark-spatial_data_structures</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.data_structures.timing.SpatialDataStructuresTiming</benchmark.mainClass>
</properties>
</profile>
<profile>
<id>benchmark-mathematics</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.mathematics.timing.MathematicsTiming</benchmark.mainClass>
</properties>
</profile>
<profile>
<id>benchmark-numbers</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.numbers.timing.NumbersTiming</benchmark.mainClass>
</properties>
</profile>
<profile>
<id>benchmark-search</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.search.timing.SearchTiming</benchmark.mainClass>
</properties>
</profile>
<profile>
<id>benchmark-sequences</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.sequence.timing.SequencesTiming</benchmark.mainClass>
</properties>
</profile>
<profile>
<id>benchmark-strings</id>
<properties>
<benchmark.mainClass>com.jwetherell.algorithms.strings.timing.StringsTiming</benchmark.mainClass>
</properties>
</profile>
</profiles>
</project>