[LIB-13] Add function to Scanner API
[chesshog-scanner.git] / pom.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2019-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     <parent>
25         <groupId>org.hedgecode.maven</groupId>
26         <artifactId>lib-parent</artifactId>
27         <version>3</version>
28         <relativePath>../lib-parent/pom.xml</relativePath>
29     </parent>
30
31     <groupId>org.hedgecode.chess</groupId>
32     <artifactId>chesshog-scanner</artifactId>
33     <version>0.1-SNAPSHOT</version>
34     <packaging>jar</packaging>
35
36     <name>Hedgecode ChessHog Scanner</name>
37     <description>
38         Hedgecode ChessHog Scanner is a Java library for parsing PGN format chess games from various chess internet portals.
39     </description>
40     <inceptionYear>2019</inceptionYear>
41
42     <url>https://lib.hedgecode.org/${project.artifactId}/</url>
43
44     <scm>
45         <connection>scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</connection>
46         <developerConnection>scm:svn:https://svn.hedgecode.org/lib/${project.artifactId}/trunk/</developerConnection>
47         <url>http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</url>
48     </scm>
49
50     <issueManagement>
51         <system>JIRA</system>
52         <url>https://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId}</url>
53     </issueManagement>
54
55     <distributionManagement>
56         <site>
57             <id>hedgecode.website</id>
58             <name>Hedgecode Libs Website</name>
59             <url>dav:https://hedgecode.org/libs/${project.artifactId}/</url>
60         </site>
61     </distributionManagement>
62
63     <properties>
64         <chessHogVersion>0.1-SNAPSHOT</chessHogVersion>
65         <httpCoreVersion>4.4.11</httpCoreVersion>
66         <httpClientVersion>4.5.9</httpClientVersion>
67         <gsonVersion>2.8.0</gsonVersion>
68         <junitVersion>4.12</junitVersion>
69         <commonsConfigVersion>1.10</commonsConfigVersion>
70         <commonsCollectionVersion>3.2.1</commonsCollectionVersion>
71         <mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
72         <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
73         <issueComponentId>10030</issueComponentId>
74         <issueNumber>13</issueNumber>
75     </properties>
76
77     <dependencies>
78         <dependency>
79             <groupId>org.apache.httpcomponents</groupId>
80             <artifactId>httpcore</artifactId>
81             <version>${httpCoreVersion}</version>
82         </dependency>
83         <dependency>
84             <groupId>org.apache.httpcomponents</groupId>
85             <artifactId>httpclient</artifactId>
86             <version>${httpClientVersion}</version>
87         </dependency>
88         <dependency>
89             <groupId>com.google.code.gson</groupId>
90             <artifactId>gson</artifactId>
91             <version>${gsonVersion}</version>
92         </dependency>
93         <dependency>
94             <groupId>junit</groupId>
95             <artifactId>junit</artifactId>
96             <version>${junitVersion}</version>
97             <scope>test</scope>
98         </dependency>
99         <dependency>
100             <groupId>commons-configuration</groupId>
101             <artifactId>commons-configuration</artifactId>
102             <version>${commonsConfigVersion}</version>
103             <scope>test</scope>
104         </dependency>
105         <dependency>
106             <groupId>commons-collections</groupId>
107             <artifactId>commons-collections</artifactId>
108             <version>${commonsCollectionVersion}</version>
109             <scope>test</scope>
110         </dependency>
111     </dependencies>
112
113     <build>
114         <plugins>
115             <plugin>
116                 <groupId>org.apache.maven.plugins</groupId>
117                 <artifactId>maven-dependency-plugin</artifactId>
118                 <version>${mavenDependencyPluginVersion}</version>
119                 <executions>
120                     <execution>
121                         <id>copy-dependencies</id>
122                         <phase>prepare-package</phase>
123                         <goals>
124                             <goal>copy-dependencies</goal>
125                         </goals>
126                         <configuration>
127                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
128                             <overWriteReleases>false</overWriteReleases>
129                             <overWriteSnapshots>false</overWriteSnapshots>
130                             <overWriteIfNewer>true</overWriteIfNewer>
131                         </configuration>
132                     </execution>
133                 </executions>
134             </plugin>
135             <plugin>
136                 <groupId>org.apache.maven.plugins</groupId>
137                 <artifactId>maven-jar-plugin</artifactId>
138                 <version>${mavenJarPluginVersion}</version>
139                 <configuration>
140                     <archive>
141                         <manifest>
142                             <addClasspath>true</addClasspath>
143                             <classpathPrefix>lib/</classpathPrefix>
144                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
145                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
146                             <mainClass>org.hedgecode.chess.scanner.ChessHogScannerApp</mainClass>
147                         </manifest>
148                         <manifestEntries>
149                             <Implementation-Title>${project.artifactId}</Implementation-Title>
150                         </manifestEntries>
151                     </archive>
152                 </configuration>
153             </plugin>
154             <plugin>
155                 <groupId>org.apache.maven.plugins</groupId>
156                 <artifactId>maven-release-plugin</artifactId>
157                 <version>${mavenReleasePluginVersion}</version>
158                 <configuration>
159                     <tagBase>https://svn.hedgecode.org/lib/${project.artifactId}/tags</tagBase>
160                     <branchBase>https://svn.hedgecode.org/lib/${project.artifactId}/branches</branchBase>
161                     <preparationGoals>clean install</preparationGoals>
162                     <goals>deploy</goals>
163                     <releaseProfiles>release</releaseProfiles>
164                     <scmCommentPrefix xml:space="preserve">[${issueKey}-${issueNumber}] </scmCommentPrefix>
165                 </configuration>
166             </plugin>
167         </plugins>
168     </build>
169
170     <reporting>
171         <plugins>
172             <plugin>
173                 <groupId>org.apache.maven.plugins</groupId>
174                 <artifactId>maven-project-info-reports-plugin</artifactId>
175                 <version>${mavenReportsPluginVersion}</version>
176                 <configuration>
177                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
178                 </configuration>
179                 <reportSets>
180                     <reportSet>
181                         <reports>
182                             <report>index</report>
183                             <report>summary</report>
184                             <report>dependency-info</report>
185                             <report>project-team</report>
186                             <report>scm</report>
187                             <report>dependency-management</report>
188                             <report>dependencies</report>
189                             <report>plugin-management</report>
190                             <report>plugins</report>
191                             <report>distribution-management</report>
192                         </reports>
193                     </reportSet>
194                 </reportSets>
195             </plugin>
196         </plugins>
197     </reporting>
198
199     <profiles>
200         <profile>
201             <id>jar-with-dependencies</id>
202             <build>
203                 <plugins>
204                     <plugin>
205                         <groupId>org.apache.maven.plugins</groupId>
206                         <artifactId>maven-assembly-plugin</artifactId>
207                         <version>${mavenAssemblyPluginVersion}</version>
208                         <configuration>
209                             <archive>
210                                 <manifest>
211                                     <addClasspath>true</addClasspath>
212                                     <classpathPrefix>lib/</classpathPrefix>
213                                     <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
214                                     <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
215                                     <mainClass>org.hedgecode.chess.scanner.ChessHogScannerApp</mainClass>
216                                 </manifest>
217                                 <manifestEntries>
218                                     <Implementation-Title>${project.artifactId}</Implementation-Title>
219                                 </manifestEntries>
220                             </archive>
221                             <descriptorRefs>
222                                 <descriptorRef>jar-with-dependencies</descriptorRef>
223                             </descriptorRefs>
224                         </configuration>
225                         <executions>
226                             <execution>
227                                 <id>make-assembly</id>
228                                 <phase>package</phase>
229                                 <goals>
230                                     <goal>single</goal>
231                                 </goals>
232                             </execution>
233                         </executions>
234                     </plugin>
235                 </plugins>
236             </build>
237         </profile>
238         <profile>
239             <id>reporting</id>
240             <reporting>
241                 <plugins>
242                     <plugin>
243                         <groupId>org.apache.maven.plugins</groupId>
244                         <artifactId>maven-javadoc-plugin</artifactId>
245                         <configuration>
246                             <sourceFileExcludes>
247                                 <!--<exclude>org/hedgecode/chess/scanner/*.java</exclude>-->
248                             </sourceFileExcludes>
249                         </configuration>
250                     </plugin>
251                 </plugins>
252             </reporting>
253         </profile>
254     </profiles>
255
256 </project>