-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
317 lines (282 loc) · 11.7 KB
/
pom.xml
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<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">
<!--
IMPORTANT NOTE: Currently, if you want to use this Maven pom file as it is, then you need to have defined
an environment variable "JDK9" which is used further down in this file as <jdk>${env.JDK9}</jdk>
-->
<modelVersion>4.0.0</modelVersion>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>adapters-shortest-paths</name>
<description>
Adapter library and implementations for finding the shortest paths between two locations.
This is useful for travel routing when you want to minimize the total time or total distance.
</description>
<url>https://github.com/TomasJohansson/adapters-shortest-paths</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/TomasJohansson/adapters-shortest-paths/blob/master/License.txt</url>
<comments>MIT license for the core library. The adapter libraries have the same license as the adaptee libraries.</comments>
</license>
<license>
<name>Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<comments>Apache license for the adapter implementations 'yan-qi' and 'bsmock' (the same license as their adaptee libraries)</comments>
</license>
</licenses>
<developers>
<developer>
<name>Tomas Johansson</name>
<organizationUrl>https://github.com/TomasJohansson</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/TomasJohansson/adapters-shortest-paths.git</connection>
<developerConnection>scm:git:ssh://github.com/TomasJohansson/adapters-shortest-paths.git</developerConnection>
<url>https://github.com/TomasJohansson/adapters-shortest-paths</url>
</scm>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-jgrapht</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-bsmock</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-yanqi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-reneargento</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-mulavito</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-jython_networkx</artifactId>
<version>${project.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<!--
The both previously used "hamcrest-core" and "hamcrest-library" are deprecated:
https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core
Core Hamcrest API - deprecated, please use "hamcrest" instead
https://mvnrepository.com/artifact/org.hamcrest/hamcrest-library
A library of Hamcrest matchers - deprecated, please use "hamcrest" instead
-->
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!-- important to include junit-jupiter-engine in the pom file for modules with JUnit 5 tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!--
https://github.com/qos-ch/slf4j
All versions upto and including 1.7.x require Java 5 or later to build.
SLF4J version 2.0.x requires Java 9 or later.
-->
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>adapters-shortest-paths-core</module>
<module>adapters-shortest-paths-impl-jgrapht</module> <!-- https://github.com/jgrapht/jgrapht -->
<module>adapters-shortest-paths-impl-yanqi</module> <!-- https://github.com/yan-qi/k-shortest-paths-java-version -->
<module>adapters-shortest-paths-impl-bsmock</module> <!-- https://github.com/bsmock/k-shortest-paths -->
<module>adapters-shortest-paths-impl-reneargento</module>
<module>adapters-shortest-paths-impl-mulavito</module>
<module>adapters-shortest-paths-impl-jython_networkx</module>
<module>adapters-shortest-paths-test</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<!-- jgrapht 1.4.0 and test module using Junit 5 requires Java 8 , and therefore these two modules override the above configuration in their pom files -->
<!-- JDK 9 supports compiling to Java 6 : -->
<maven.compiler.forceJavacCompilerUse>true</maven.compiler.forceJavacCompilerUse>
<jdk.version>9</jdk.version>
<jdk>${env.JDK9}</jdk>
<junit.version>5.7.0</junit.version>
<slf4j.version>1.7.30</slf4j.version>
</properties>
<build>
<pluginManagement>
<plugins>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<!--
<source>1.6</source>
<target>1.6</target>
-->
<!--
https://stackoverflow.com/questions/12414209/compile-maven-module-with-different-java-version
The source level can be set like below (and can be overridden i sub modules)
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
JDK 9 supports compiling to Java 6
-->
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<executable>${jdk}/bin/javac</executable>
<fork>true</fork>
<!--
Note: Jitpack currently (April 2020) compiles with Java 8 as the default,
but you can use a "jitpack.yml" file at the git root and there specify this:
jdk:
- openjdk9
I did this in the git commit fdb3ad991e7157667dcee3efe3200106fe9cd584 and then it was succesful:
https://jitpack.io/com/github/TomasJohansson/adapters-shortest-paths/fdb3ad991e7157667dcee3efe3200106fe9cd584/build.log
However you can see this line in the above url:
Quote: "Java version: 10, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-10"
... BUILD SUCCESS
Anyway, it worked. Which it dit not with the previous commit 9aef649762ba90fa9922d55c1ff96a9d7d879b0a
https://jitpack.io/com/github/TomasJohansson/adapters-shortest-paths/9aef649762ba90fa9922d55c1ff96a9d7d879b0a/build.log
Quote: "Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre"
... BUILD FAILURE
-->
</configuration>
</plugin>
<!-- the below maven-surefire-plugin and maven-failsafe-plugin :
https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
-->
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.2</version>
</plugin>
</plugins>
</pluginManagement>
<resources>
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>License.txt</include>
<include>NOTICE.txt</include>
</includes>
</resource>
</resources>
<plugins>
<!--
http://central.sonatype.org/pages/requirements.html
https://maven.apache.org/plugin-developers/cookbook/attach-source-javadoc-artifacts.html
https://maven.apache.org/plugins/maven-source-plugin/download.cgi
https://maven.apache.org/plugins/maven-javadoc-plugin/download.cgi
http://maven.apache.org/plugins/maven-gpg-plugin/download.cgi
-->
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<failOnError>false</failOnError>
<!-- https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html -->
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<!--
jitpack is needed by some modules which are using an adaptee implementations not available at "Maven Central"
but then instead can be retrieved from jitpack by referring to a github project and commmit as the version.
-->
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project> <!-->https://maven.apache.org/pom.html#Quick_Overview -->