-
Notifications
You must be signed in to change notification settings - Fork 10
/
pom.xml
240 lines (220 loc) · 8.22 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- A pom.xml file for TaxonDNA -->
<!--
We used Ant files [1] until Feb 2021, when I switched over to Maven.
For now, I'll copy the way in which we implemented this in Ant back in 2006,
which is to create multiple JAR files for each "software" (SpeciesIdentifier,
SequenceMatrix, and so on). Eventually, the right thing to do would be to split
the Common code into a separate package and then include it into the other
softwares.
[1] https://github.com/gaurav/taxondna/blob/1842c7329d2c32fe76bf5c352720712c2cc7d46d/build.xml
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.ggvaidya</groupId>
<artifactId>TaxonDNA</artifactId>
<version>1.10-SNAPSHOT</version>
<name>TaxonDNA</name>
<description>Taxonomy-aware DNA sequence processing toolkit.</description>
<url>https://github.com/gaurav/taxondna</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/gaurav/taxondna.git</connection>
<developerConnection>scm:git:ssh://github.com:gaurav/taxondna.git</developerConnection>
<url>http://github.com/gaurav/taxondna</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<spotless.version>2.22.2</spotless.version>
</properties>
<build>
<plugins>
<!-- Compilation configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<testSource>${maven.compiler.source}</testSource>
<testTarget>${maven.compiler.target}</testTarget>
<compilerArgument>-Xlint:unchecked</compilerArgument>
</configuration>
</plugin>
<!--
Create multiple JAR files, one for each 'software'.
-->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<executions>
<!-- SpeciesIdentifier -->
<execution>
<id>SpeciesIdentifier</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<archive>
<index>true</index>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<mainClass>com.ggvaidya.TaxonDNA.SpeciesIdentifier.SpeciesIdentifier</mainClass>
</manifest>
</archive>
<classifier>SpeciesIdentifier</classifier>
<includes>
<include>com/ggvaidya/TaxonDNA/Common/**</include>
<include>com/ggvaidya/TaxonDNA/SpeciesIdentifier/**</include>
</includes>
</configuration>
</execution>
<!-- GenBankExplorer -->
<execution>
<id>GenBankExplorer</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<archive>
<index>true</index>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<mainClass>com.ggvaidya.TaxonDNA.GenBankExplorer.GenBankExplorer</mainClass>
</manifest>
</archive>
<classifier>GenBankExplorer</classifier>
<includes>
<include>com/ggvaidya/TaxonDNA/Common/**</include>
<include>com/ggvaidya/TaxonDNA/GenBankExplorer/**</include>
</includes>
</configuration>
</execution>
<!-- SequenceMatrix -->
<execution>
<id>SequenceMatrix</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<archive>
<index>true</index>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<mainClass>com.ggvaidya.TaxonDNA.SequenceMatrix.SequenceMatrix</mainClass>
</manifest>
</archive>
<classifier>SequenceMatrix</classifier>
<includes>
<include>com/ggvaidya/TaxonDNA/Common/**</include>
<include>com/ggvaidya/TaxonDNA/SequenceMatrix/**</include>
</includes>
</configuration>
</execution>
<!--
In build.xml, there was a reference to something called 'DClusters',
in com.ggvaidya.TaxonDNA.DClusters, but this no longer appears to be
part of the source. Oh well!
-->
</executions>
</plugin>
<!-- We use Spotless to check style -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<configuration>
<formats>
<!-- you can define as many formats as you want, each is independent -->
<format>
<!-- define the files to apply to -->
<includes>
<include>.gitignore</include>
</includes>
<!-- define the steps to apply to those files -->
<trimTrailingWhitespace></trimTrailingWhitespace>
<endWithNewline></endWithNewline>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<!-- define a language-specific format -->
<java>
<!-- no need to specify files, inferred automatically, but you can if you want -->
<!-- apply a specific flavor of google-java-format and reflow long strings -->
<googleJavaFormat>
<version>1.13.0</version>
<style>AOSP</style>
<reflowLongStrings>true</reflowLongStrings>
</googleJavaFormat>
</java>
<!-- Format Markdown files -->
<markdown>
<includes>
<!-- You have to set the target manually -->
<include>**/*.md</include>
</includes>
<flexmark></flexmark>
<!-- has its own section below -->
</markdown>
<!-- Format this POM file -->
<pom>
<!-- These are the defaults, you can override if you want -->
<includes>
<include>pom.xml</include>
</includes>
<sortPom></sortPom>
</pom>
</configuration>
</plugin>
<!-- We use the Assembly plugin to build the releases. -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>SpeciesIdentifier</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/assemblies/SpeciesIdentifier.xml</descriptor>
</descriptors>
<finalName>SpeciesIdentifier-${project.version}</finalName>
</configuration>
</execution>
<execution>
<id>SequenceMatrix</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/assemblies/SequenceMatrix.xml</descriptor>
</descriptors>
<finalName>SequenceMatrix-${project.version}</finalName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>