[LIB-9] Separate chesshog-format module
[chesshog.git] / pom.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2018. Developed by Hedgecode.
5   ~
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   -->
18
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21     <modelVersion>4.0.0</modelVersion>
22
23     <parent>
24         <groupId>org.hedgecode.maven</groupId>
25         <artifactId>lib-parent</artifactId>
26         <version>2</version>
27         <relativePath>../lib-parent/pom.xml</relativePath>
28     </parent>
29
30     <groupId>org.hedgecode.chess</groupId>
31     <artifactId>chesshog</artifactId>
32     <version>0.1-SNAPSHOT</version>
33     <packaging>jar</packaging>
34
35     <name>Hedgecode Chess</name>
36     <description>
37         Hedgecode Chess.
38     </description>
39     <inceptionYear>2018</inceptionYear>
40
41     <url>http://lib.hedgecode.org/${project.artifactId}/</url>
42
43     <scm>
44         <connection>scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</connection>
45         <developerConnection>scm:svn:https://svn.hedgecode.org/lib/${project.artifactId}/trunk/</developerConnection>
46         <url>http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</url>
47     </scm>
48
49     <issueManagement>
50         <system>JIRA</system>
51         <url>http://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId}</url>
52     </issueManagement>
53
54     <distributionManagement>
55         <site>
56             <id>hedgecode.website</id>
57             <name>Hedgecode Libs Website</name>
58             <url>dav:https://hedgecode.org/libs/${project.artifactId}/</url>
59         </site>
60     </distributionManagement>
61
62     <properties>
63         <junitVersion>4.12</junitVersion>
64         <commonsConfigVersion>1.10</commonsConfigVersion>
65         <commonsCollectionVersion>3.2.1</commonsCollectionVersion>
66         <mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
67         <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
68         <issueComponentId>10030</issueComponentId>
69         <issueNumber>9</issueNumber>
70     </properties>
71
72     <dependencies>
73         <dependency>
74             <groupId>junit</groupId>
75             <artifactId>junit</artifactId>
76             <version>${junitVersion}</version>
77             <scope>test</scope>
78         </dependency>
79         <dependency>
80             <groupId>commons-configuration</groupId>
81             <artifactId>commons-configuration</artifactId>
82             <version>${commonsConfigVersion}</version>
83             <scope>test</scope>
84         </dependency>
85         <dependency>
86             <groupId>commons-collections</groupId>
87             <artifactId>commons-collections</artifactId>
88             <version>${commonsCollectionVersion}</version>
89             <scope>test</scope>
90         </dependency>
91     </dependencies>
92
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>org.apache.maven.plugins</groupId>
97                 <artifactId>maven-dependency-plugin</artifactId>
98                 <version>${mavenDependencyPluginVersion}</version>
99                 <executions>
100                     <execution>
101                         <id>copy-dependencies</id>
102                         <phase>prepare-package</phase>
103                         <goals>
104                             <goal>copy-dependencies</goal>
105                         </goals>
106                         <configuration>
107                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
108                             <overWriteReleases>false</overWriteReleases>
109                             <overWriteSnapshots>false</overWriteSnapshots>
110                             <overWriteIfNewer>true</overWriteIfNewer>
111                         </configuration>
112                     </execution>
113                 </executions>
114             </plugin>
115             <plugin>
116                 <groupId>org.apache.maven.plugins</groupId>
117                 <artifactId>maven-jar-plugin</artifactId>
118                 <version>${mavenJarPluginVersion}</version>
119                 <configuration>
120                     <archive>
121                         <manifest>
122                             <addClasspath>true</addClasspath>
123                             <classpathPrefix>lib/</classpathPrefix>
124                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
125                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
126                             <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
127                         </manifest>
128                         <manifestEntries>
129                             <Implementation-Title>${project.artifactId}</Implementation-Title>
130                         </manifestEntries>
131                     </archive>
132                 </configuration>
133             </plugin>
134             <plugin>
135                 <groupId>org.apache.maven.plugins</groupId>
136                 <artifactId>maven-release-plugin</artifactId>
137                 <version>${mavenReleasePluginVersion}</version>
138                 <configuration>
139                     <tagBase>https://svn.hedgecode.org/lib/${project.artifactId}/tags</tagBase>
140                     <branchBase>https://svn.hedgecode.org/lib/${project.artifactId}/branches</branchBase>
141                     <preparationGoals>clean install</preparationGoals>
142                     <goals>deploy</goals>
143                     <releaseProfiles>release</releaseProfiles>
144                     <scmCommentPrefix xml:space="preserve">[${issueKey}-${issueNumber}] </scmCommentPrefix>
145                 </configuration>
146             </plugin>
147         </plugins>
148     </build>
149
150     <reporting>
151         <plugins>
152             <plugin>
153                 <groupId>org.apache.maven.plugins</groupId>
154                 <artifactId>maven-project-info-reports-plugin</artifactId>
155                 <version>${mavenReportsPluginVersion}</version>
156                 <configuration>
157                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
158                 </configuration>
159                 <reportSets>
160                     <reportSet>
161                         <reports>
162                             <report>index</report>
163                             <report>summary</report>
164                             <report>dependency-info</report>
165                             <report>project-team</report>
166                             <report>scm</report>
167                             <report>dependency-management</report>
168                             <report>dependencies</report>
169                             <report>plugin-management</report>
170                             <report>plugins</report>
171                             <report>distribution-management</report>
172                         </reports>
173                     </reportSet>
174                 </reportSets>
175             </plugin>
176         </plugins>
177     </reporting>
178
179     <profiles>
180         <profile>
181             <id>jar-with-dependencies</id>
182             <build>
183                 <plugins>
184                     <plugin>
185                         <groupId>org.apache.maven.plugins</groupId>
186                         <artifactId>maven-assembly-plugin</artifactId>
187                         <version>${mavenAssemblyPluginVersion}</version>
188                         <configuration>
189                             <archive>
190                                 <manifest>
191                                     <addClasspath>true</addClasspath>
192                                     <classpathPrefix>lib/</classpathPrefix>
193                                     <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
194                                     <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
195                                     <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
196                                 </manifest>
197                                 <manifestEntries>
198                                     <Implementation-Title>${project.artifactId}</Implementation-Title>
199                                 </manifestEntries>
200                             </archive>
201                             <descriptorRefs>
202                                 <descriptorRef>jar-with-dependencies</descriptorRef>
203                             </descriptorRefs>
204                         </configuration>
205                         <executions>
206                             <execution>
207                                 <id>make-assembly</id>
208                                 <phase>package</phase>
209                                 <goals>
210                                     <goal>single</goal>
211                                 </goals>
212                             </execution>
213                         </executions>
214                     </plugin>
215                 </plugins>
216             </build>
217         </profile>
218         <profile>
219             <id>reporting</id>
220             <reporting>
221                 <plugins>
222                     <plugin>
223                         <groupId>org.apache.maven.plugins</groupId>
224                         <artifactId>maven-javadoc-plugin</artifactId>
225                         <configuration>
226                             <sourceFileExcludes>
227                                 <!--<exclude>org/hedgecode/chess/*.java</exclude>-->
228                             </sourceFileExcludes>
229                         </configuration>
230                     </plugin>
231                 </plugins>
232             </reporting>
233         </profile>
234     </profiles>
235
236 </project>