[LIB-9] Modify ChessQRCodeWriterTest
[chesshog.git] / pom.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2018-2020. 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"
20          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23
24     <modules>
25         <module>chesshog-core</module>
26         <module>chesshog-format</module>
27         <module>chesshog-uci</module>
28         <module>chesshog-graphics</module>
29         <module>chesshog-hedgefish</module>
30         <module>chesshog-dbetude</module>
31         <module>chesshog-qrcode</module>
32     </modules>
33
34     <parent>
35         <groupId>org.hedgecode.maven</groupId>
36         <artifactId>lib-parent</artifactId>
37         <version>3</version>
38         <relativePath>../lib-parent/pom.xml</relativePath>
39     </parent>
40
41     <groupId>org.hedgecode.chess</groupId>
42     <artifactId>chesshog</artifactId>
43     <version>0.1-SNAPSHOT</version>
44     <packaging>pom</packaging>
45
46     <name>Hedgecode ChessHog</name>
47     <description>
48         Hedgecode ChessHog is a chess project that includes modules with different functionality, such as:
49
50         * own internal format for the presentation of chess games and positions, which makes
51           it possible to use this project as API library for various chess Java applications;
52         * ability to work with various formats of chess games and diagrams (e.g. PGN, FEN),
53           including the functionality of generating chess positions in ASCII format,
54           as well as Wikipedia format;
55         * provide full functionality for working with UCI (Universal Chess Interface) protocol,
56           which allows both connecting external UCI engines and developing your own
57           using API of UCI module with a set of necessary interfaces described in it;
58         * building chess diagrams in the form of images with a diverse set of chess pieces;
59         * ability to record chess games and positions in the form of a QR code,
60           as well as recognition of this chess QR code.
61     </description>
62     <inceptionYear>2018</inceptionYear>
63
64     <url>https://lib.hedgecode.org/${project.artifactId}/</url>
65
66     <scm>
67         <connection>scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</connection>
68         <developerConnection>scm:svn:https://svn.hedgecode.org/lib/${project.artifactId}/trunk/</developerConnection>
69         <url>http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</url>
70     </scm>
71
72     <issueManagement>
73         <system>JIRA</system>
74         <url>https://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId}</url>
75     </issueManagement>
76
77     <distributionManagement>
78         <site>
79             <id>hedgecode.website</id>
80             <name>Hedgecode Libs Website</name>
81             <url>dav:https://hedgecode.org/libs/${project.artifactId}/</url>
82         </site>
83     </distributionManagement>
84
85     <properties>
86         <chessHogVersion>0.1-SNAPSHOT</chessHogVersion>
87         <junitVersion>4.12</junitVersion>
88         <commonsConfigVersion>1.10</commonsConfigVersion>
89         <commonsCollectionVersion>3.2.1</commonsCollectionVersion>
90         <mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
91         <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
92         <issueComponentId>10030</issueComponentId>
93         <issueNumber>9</issueNumber>
94     </properties>
95
96     <dependencies>
97         <dependency>
98             <groupId>junit</groupId>
99             <artifactId>junit</artifactId>
100             <version>${junitVersion}</version>
101             <scope>test</scope>
102         </dependency>
103         <dependency>
104             <groupId>commons-configuration</groupId>
105             <artifactId>commons-configuration</artifactId>
106             <version>${commonsConfigVersion}</version>
107             <scope>test</scope>
108         </dependency>
109         <dependency>
110             <groupId>commons-collections</groupId>
111             <artifactId>commons-collections</artifactId>
112             <version>${commonsCollectionVersion}</version>
113             <scope>test</scope>
114         </dependency>
115     </dependencies>
116
117     <build>
118         <plugins>
119             <plugin>
120                 <groupId>org.apache.maven.plugins</groupId>
121                 <artifactId>maven-dependency-plugin</artifactId>
122                 <version>${mavenDependencyPluginVersion}</version>
123                 <executions>
124                     <execution>
125                         <id>copy-dependencies</id>
126                         <phase>prepare-package</phase>
127                         <goals>
128                             <goal>copy-dependencies</goal>
129                         </goals>
130                         <configuration>
131                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
132                             <overWriteReleases>false</overWriteReleases>
133                             <overWriteSnapshots>false</overWriteSnapshots>
134                             <overWriteIfNewer>true</overWriteIfNewer>
135                         </configuration>
136                     </execution>
137                 </executions>
138             </plugin>
139             <plugin>
140                 <groupId>org.apache.maven.plugins</groupId>
141                 <artifactId>maven-jar-plugin</artifactId>
142                 <version>${mavenJarPluginVersion}</version>
143                 <configuration>
144                     <archive>
145                         <manifest>
146                             <addClasspath>true</addClasspath>
147                             <classpathPrefix>lib/</classpathPrefix>
148                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
149                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
150                             <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
151                         </manifest>
152                         <manifestEntries>
153                             <Implementation-Title>${project.artifactId}</Implementation-Title>
154                         </manifestEntries>
155                     </archive>
156                 </configuration>
157             </plugin>
158             <plugin>
159                 <groupId>org.apache.maven.plugins</groupId>
160                 <artifactId>maven-release-plugin</artifactId>
161                 <version>${mavenReleasePluginVersion}</version>
162                 <configuration>
163                     <tagBase>https://svn.hedgecode.org/lib/${project.artifactId}/tags</tagBase>
164                     <branchBase>https://svn.hedgecode.org/lib/${project.artifactId}/branches</branchBase>
165                     <preparationGoals>clean install</preparationGoals>
166                     <goals>deploy</goals>
167                     <releaseProfiles>release</releaseProfiles>
168                     <scmCommentPrefix xml:space="preserve">[${issueKey}-${issueNumber}] </scmCommentPrefix>
169                 </configuration>
170             </plugin>
171         </plugins>
172     </build>
173
174     <reporting>
175         <plugins>
176             <plugin>
177                 <groupId>org.apache.maven.plugins</groupId>
178                 <artifactId>maven-project-info-reports-plugin</artifactId>
179                 <version>${mavenReportsPluginVersion}</version>
180                 <configuration>
181                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
182                 </configuration>
183                 <reportSets>
184                     <reportSet>
185                         <reports>
186                             <report>index</report>
187                             <report>summary</report>
188                             <report>dependency-info</report>
189                             <report>project-team</report>
190                             <report>scm</report>
191                             <report>dependency-management</report>
192                             <report>dependencies</report>
193                             <report>plugin-management</report>
194                             <report>plugins</report>
195                             <report>distribution-management</report>
196                         </reports>
197                     </reportSet>
198                 </reportSets>
199             </plugin>
200         </plugins>
201     </reporting>
202
203     <profiles>
204         <profile>
205             <id>jar-with-dependencies</id>
206             <build>
207                 <plugins>
208                     <plugin>
209                         <groupId>org.apache.maven.plugins</groupId>
210                         <artifactId>maven-assembly-plugin</artifactId>
211                         <version>${mavenAssemblyPluginVersion}</version>
212                         <configuration>
213                             <archive>
214                                 <manifest>
215                                     <addClasspath>true</addClasspath>
216                                     <classpathPrefix>lib/</classpathPrefix>
217                                     <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
218                                     <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
219                                     <mainClass>org.hedgecode.chess.ChessHogApp</mainClass>
220                                 </manifest>
221                                 <manifestEntries>
222                                     <Implementation-Title>${project.artifactId}</Implementation-Title>
223                                 </manifestEntries>
224                             </archive>
225                             <descriptorRefs>
226                                 <descriptorRef>jar-with-dependencies</descriptorRef>
227                             </descriptorRefs>
228                         </configuration>
229                         <executions>
230                             <execution>
231                                 <id>make-assembly</id>
232                                 <phase>package</phase>
233                                 <goals>
234                                     <goal>single</goal>
235                                 </goals>
236                             </execution>
237                         </executions>
238                     </plugin>
239                 </plugins>
240             </build>
241         </profile>
242         <profile>
243             <id>reporting</id>
244             <reporting>
245                 <plugins>
246                     <plugin>
247                         <groupId>org.apache.maven.plugins</groupId>
248                         <artifactId>maven-javadoc-plugin</artifactId>
249                         <configuration>
250                             <sourceFileExcludes>
251                                 <!--<exclude>org/hedgecode/chess/*.java</exclude>-->
252                             </sourceFileExcludes>
253                         </configuration>
254                     </plugin>
255                 </plugins>
256             </reporting>
257         </profile>
258     </profiles>
259
260 </project>