-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
364 lines (307 loc) · 12.1 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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!--
Copyright (C) Aros Bio AB.
CPSign is an Open Source Software that is dual licensed to allow you to choose a license that best suits your requirements:
1) GPLv3 (GNU General Public License Version 3) with Additional Terms, including an attribution clause as well as a limitation to use the software for commercial purposes.
2) CPSign Proprietary License that allows you to use CPSign for commercial activities, such as in a revenue-generating operation or environment, or integrate CPSign in your proprietary software without worrying about disclosing the source code of your proprietary software, which is required if you choose to use the software under GPLv3 license. See arosbio.com/cpsign/commercial-license for details.
-->
<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.arosbio</groupId>
<artifactId>cpsign-dl4j</artifactId>
<version>0.0.1-beta10-SNAPSHOT</version>
<organization>
<name>Aros Bio</name>
<url>https://arosbio.com</url>
</organization>
<url>https://arosbio.com</url>
<licenses>
<license>
<name>GPLv3 (GNU General Public License Version 3) with Additional Terms</name>
<comments>Non-commerical license</comments>
<url>http://www.gnu.org/licenses/gpl-3.0.html</url>
<distribution>repo</distribution>
</license>
<license>
<name>Commercial license</name>
<url>https://arosbio.com/cpsign/commercial-license</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Staffan Arvidsson McShane</name>
<email>staffan.arvidsson@gmail.com</email>
<organization>Pharmb.io</organization>
<organizationUrl>https://pharmb.io/</organizationUrl>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cpsign.version>2.0.0-rc4</cpsign.version>
<dl4j.version>1.0.0-M2.1</dl4j.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<!-- plugin versions -->
<shade.plugin.version>3.2.4</shade.plugin.version>
<javadoc.plugin.version>3.4.0</javadoc.plugin.version>
<compiler.plugin.version>3.11.0</compiler.plugin.version>
<dependency.plugin.version>3.6.0</dependency.plugin.version>
<resources.plugin.version>3.3.1</resources.plugin.version>
<jar.plugin.version>3.3.0</jar.plugin.version>
<surefire.plugin.version>3.0.0-M7</surefire.plugin.version>
<shade.plugin.version>3.2.4</shade.plugin.version>
<jcommon.version>1.0.23</jcommon.version>
<jfreechart.version>1.0.13</jfreechart.version>
<!-- Here setting the names during the package phase - as we're both building a thin and fat jar -->
<thin.final.name>${project.artifactId}-${project.version}.jar</thin.final.name>
<!-- The name of the final 'fat jar' (excluding .jar as the shade plugin adds it by default) -->
<fat.final.name>${project.artifactId}-${project.version}-fatjar</fat.final.name>
<!-- Properties for the Manifest -->
<mf.impl.vendor>Aros Bio AB</mf.impl.vendor>
<main.class>com.arosbio.ml.dl4j.MainClass</main.class>
<fatjar.main.class>com.arosbio.cpsign.app.CPSignApp</fatjar.main.class>
<!-- Properties to supply at build time -->
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>dd-MM-yyyy HH:mm</maven.build.timestamp.format>
</properties>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.arosbio</groupId>
<artifactId>confai</artifactId>
<version>${cpsign.version}</version>
<!-- Remove if merging with main CPSign code -->
<!--<scope>provided</scope> -->
</dependency>
<!-- Declare a test-dependency on the CLI version, to verify things work there as well -->
<dependency>
<groupId>com.arosbio</groupId>
<artifactId>cpsign</artifactId>
<version>${cpsign.version}</version>
<scope>test</scope>
</dependency>
<!-- deeplearning4j-core: contains main functionality and neural networks -->
<dependency>
<groupId>org.deeplearning4j</groupId>
<artifactId>deeplearning4j-core</artifactId>
<version>${dl4j.version}</version>
</dependency>
<!--
ND4J backend: every project needs one of these. The backend defines the hardware on which network training
will occur. "nd4j-native-platform" is for CPUs only (for running on all operating systems).
- nd4j-native: add native support for the platform you build on
- nd4j-native-platform: add support for all major platforms (mac, linux, windows, android)
- nd4j-cuda-<version>
More info: https://deeplearning4j.konduit.ai/multi-project/explanation/configuration/backends
-->
<!-- <artifactId>nd4j-native-platform</artifactId> -->
<!--<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-cuda-11.2</artifactId>
<version>${dl4j.version}</version>
</dependency>-->
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native</artifactId>
<version>1.0.0-M2.1</version>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native</artifactId>
<version>1.0.0-M2.1</version>
<classifier>macosx-arm64</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>openblas</artifactId>
<version>0.3.21-1.5.8</version>
<classifier>macosx-arm64</classifier>
</dependency>
<!-- TEST DEPENDENCIES -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>[4.13.1,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
<version>1.19.0</version>
<scope>test</scope>
<!-- junit:junit-dep is deprecated, and junit:junit replaces it. -->
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit-dep</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler.plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.plugin.version}</version>
</plugin>
<!-- License management: updates the header of source files only
Run it using `mvn license:format` -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.1</version>
<configuration>
<licenseSets>
<licenseSet>
<inlineHeader>
Copyright (C) Aros Bio AB.
CPSign is an Open Source Software that is dual licensed to allow you to choose a license that best suits your requirements:
1) GPLv3 (GNU General Public License Version 3) with Additional Terms, including an attribution clause as well as a limitation to use the software for commercial purposes.
2) CPSign Proprietary License that allows you to use CPSign for commercial activities, such as in a revenue-generating operation or environment, or integrate CPSign in your proprietary software without worrying about disclosing the source code of your proprietary software, which is required if you choose to use the software under GPLv3 license. See arosbio.com/cpsign/commercial-license for details.
</inlineHeader>
<excludes>
<exclude>**/README</exclude>
<exclude>*.md</exclude>
<exclude>src/test/resources/**</exclude>
<exclude>src/main/resources/**</exclude>
<exclude>**/*.txt</exclude>
</excludes>
</licenseSet>
</licenseSets>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- Building the thin jar when inclueded as transitive dependency -->
<profile>
<id>thinjar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${jar.plugin.version}</version>
<configuration>
<archive>
<manifest>
<mainClass>${main.class}</mainClass>
</manifest>
<manifestEntries>
<Implementation-Title>Aros Bio ${project.artifactId}</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor-Id>${mf.impl.vendor}</Implementation-Vendor-Id>
<X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
<X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Building the fat jar including CPSign CLI and all deps -->
<profile>
<id>fatjar</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<!-- Add additional dep for CPSign CLI -->
<dependencies>
<dependency>
<groupId>com.arosbio</groupId>
<artifactId>cpsign</artifactId>
<version>${cpsign.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${shade.plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${fat.final.name}</finalName>
<createDependencyReducedPom>false</createDependencyReducedPom>
<!-- FILTERS -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>org/datanucleus/**</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>header.txt</exclude>
<exclude>jena-*</exclude>
<exclude>log4j.properties</exclude>
</excludes>
</filter>
</filters>
<transformers>
<!-- Handles the external third party licenses -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>${fatjar.main.class}</Main-Class>
<Implementation-Title>Aros Bio ${project.artifactId}</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor-Id>${mf.impl.vendor}</Implementation-Vendor-Id>
<X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
<X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
<X-Build-timestamp>${maven.build.timestamp}</X-Build-timestamp>
</manifestEntries>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" />
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>