-
Notifications
You must be signed in to change notification settings - Fork 33
/
pom.xml
206 lines (177 loc) · 7.26 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
<!--
pom.xml adapted from jpl-7.4.0.pom provided
with JPL library hosted at Maven Central.
https://mvnrepository.com/artifact/jpl/jpl/7.4.0
Used for convenient build management of JPL Java API.
Adapted for use by Matthew McNally.
-->
<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>
<!-- ######################### PROJECT INFO ######################### -->
<groupId>com.github.SWI-Prolog</groupId>
<artifactId>packages-jpl</artifactId>
<version>7.6.1</version>
<packaging>jar</packaging>
<name>jpl</name>
<description>A Java Interface to Prolog</description>
<url>http://jpl7.org/</url>
<!-- JPL uses Simplified BSD license -->
<licenses>
<license>
<name>Simplified BSD License</name>
<url>https://github.com/SWI-Prolog/swipl-devel/blob/master/LICENSE</url>
</license>
</licenses>
<scm>
<connection>scm:git:[email protected]:SWI-Prolog/packages-jpl.git</connection>
<url>[email protected]:SWI-Prolog/packages-jpl.git</url>
</scm>
<!-- JPL authors -->
<developers>
<developer>
<name>Paul Singleton</name>
</developer>
<developer>
<name>Fred Dushin</name>
</developer>
<developer>
<name>Jan Wielemaker</name>
</developer>
<developer>
<name>Sebastian Sardina</name>
</developer>
</developers>
<!-- ######################### PROPERTIES ######################### -->
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<slf4jVersion>1.7.25</slf4jVersion>
<skipTests>true</skipTests>
<!-- <jar.finalName>jpl-${version}</jar.finalName>-->
</properties>
<!-- ######################### DEPENDENCIES ######################### -->
<dependencies>
<!-- JUNIT testing framework -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<!--<scope>test</scope>-->
</dependency>
<!-- SLF4J Logging framework -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4jVersion}</version>
</dependency>
</dependencies>
<!-- ######################### REPOSITORIES ######################### -->
<!-- ######################### BUILD PIPELINE ######################### -->
<build>
<!-- Ensure custom source directory structure taken into account -->
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java/org/jpl7</testSourceDirectory>
<plugins>
<!-- Java source compilation plugin -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<!-- Exclude tests from source compilation as JUnit is a test dependency -->
<excludes>
<exclude>org/jpl7/*.java</exclude>
<exclude>org/jpl7/standalone/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<configuration>
<excludes>
<exclude>org/jpl7/test/</exclude>
<exclude>org/jpl7/util/</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<excludes>
<exclude>org/jpl7/test/</exclude>
<exclude>org/jpl7/util/</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- JAVADOC generation plugin -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<source>8</source>
<excludePackageNames>org.jpl7.util;org.jpl7.test;org.jpl7.test.*</excludePackageNames>
<!-- NOT NEEDED - But have JAVA_HOME correctly set-up
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
-->
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Unit test execution -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<!-- Check this: https://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-tests.html -->
<skipTests>${skipTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<!-- ######################### DISTRIBUTIONS ######################### -->
<!-- https://maven.apache.org/plugins/maven-deploy-plugin/usage.html -->
<distributionManagement>
<repository>
<id>com.github</id>
<name>GitHub SWI-Prolog JPL Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SWI-Prolog/packages-jpl</url>
</repository>
</distributionManagement>
<!-- ######################### PROFILES ######################### -->
<profiles>
<profile>
<id>disable-java8-doclint</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>
</profile>
</profiles>
</project>