[LIB-8] Add Event Rounds and Seedings functional
[snooker-score-api.git] / pom.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2017-2019. 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.snooker</groupId>
31     <artifactId>snooker-score-api</artifactId>
32     <version>0.2-SNAPSHOT</version>
33     <packaging>jar</packaging>
34
35     <name>Hedgecode Snooker Score API</name>
36     <description>
37         Hedgecode Snooker Score is an API library for portal snooker.org,
38         which contains the results of snooker competitions and other snooker information.
39         The library provides a set of entity objects that can be used in client
40         applications (to inform about the results of snooker) developed in Java.
41     </description>
42     <inceptionYear>2017</inceptionYear>
43
44     <url>http://lib.hedgecode.org/${project.artifactId}/</url>
45
46     <scm>
47         <connection>scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</connection>
48         <developerConnection>scm:svn:https://svn.hedgecode.org/lib/${project.artifactId}/trunk/</developerConnection>
49         <url>http://svn.hedgecode.org/lib/${project.artifactId}/trunk/</url>
50     </scm>
51
52     <issueManagement>
53         <system>JIRA</system>
54         <url>http://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId}</url>
55     </issueManagement>
56
57     <distributionManagement>
58         <site>
59             <id>hedgecode.website</id>
60             <name>Hedgecode Libs Website</name>
61             <url>dav:https://hedgecode.org/libs/${project.artifactId}/</url>
62         </site>
63     </distributionManagement>
64
65     <properties>
66         <gsonVersion>2.8.0</gsonVersion>
67         <junitVersion>4.8.2</junitVersion>
68         <mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
69         <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
70         <issueComponentId>10012</issueComponentId>
71         <issueNumber>8</issueNumber>
72     </properties>
73
74     <dependencies>
75         <dependency>
76             <groupId>com.google.code.gson</groupId>
77             <artifactId>gson</artifactId>
78             <version>${gsonVersion}</version>
79         </dependency>
80         <dependency>
81             <groupId>junit</groupId>
82             <artifactId>junit</artifactId>
83             <version>${junitVersion}</version>
84             <scope>test</scope>
85         </dependency>
86     </dependencies>
87
88     <build>
89         <plugins>
90             <plugin>
91                 <groupId>org.apache.maven.plugins</groupId>
92                 <artifactId>maven-dependency-plugin</artifactId>
93                 <version>${mavenDependencyPluginVersion}</version>
94                 <executions>
95                     <execution>
96                         <id>copy-dependencies</id>
97                         <phase>prepare-package</phase>
98                         <goals>
99                             <goal>copy-dependencies</goal>
100                         </goals>
101                         <configuration>
102                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
103                             <overWriteReleases>false</overWriteReleases>
104                             <overWriteSnapshots>false</overWriteSnapshots>
105                             <overWriteIfNewer>true</overWriteIfNewer>
106                         </configuration>
107                     </execution>
108                 </executions>
109             </plugin>
110             <plugin>
111                 <groupId>org.apache.maven.plugins</groupId>
112                 <artifactId>maven-jar-plugin</artifactId>
113                 <version>${mavenJarPluginVersion}</version>
114                 <configuration>
115                     <archive>
116                         <manifest>
117                             <addClasspath>true</addClasspath>
118                             <classpathPrefix>lib/</classpathPrefix>
119                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
120                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
121                             <mainClass>org.hedgecode.snooker.SnookerScoreApp</mainClass>
122                         </manifest>
123                         <manifestEntries>
124                             <Implementation-Title>${project.artifactId}</Implementation-Title>
125                         </manifestEntries>
126                     </archive>
127                 </configuration>
128             </plugin>
129             <plugin>
130                 <groupId>org.apache.maven.plugins</groupId>
131                 <artifactId>maven-release-plugin</artifactId>
132                 <version>${mavenReleasePluginVersion}</version>
133                 <configuration>
134                     <tagBase>https://svn.hedgecode.org/lib/${project.artifactId}/tags</tagBase>
135                     <branchBase>https://svn.hedgecode.org/lib/${project.artifactId}/branches</branchBase>
136                     <preparationGoals>clean install</preparationGoals>
137                     <goals>deploy</goals>
138                     <releaseProfiles>release</releaseProfiles>
139                     <scmCommentPrefix xml:space="preserve">[${issueKey}-${issueNumber}] </scmCommentPrefix>
140                 </configuration>
141             </plugin>
142         </plugins>
143     </build>
144
145     <reporting>
146         <plugins>
147             <plugin>
148                 <groupId>org.apache.maven.plugins</groupId>
149                 <artifactId>maven-project-info-reports-plugin</artifactId>
150                 <version>${mavenReportsPluginVersion}</version>
151                 <configuration>
152                     <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
153                 </configuration>
154                 <reportSets>
155                     <reportSet>
156                         <reports>
157                             <report>index</report>
158                             <report>summary</report>
159                             <report>dependency-info</report>
160                             <report>project-team</report>
161                             <report>scm</report>
162                             <report>dependency-management</report>
163                             <report>dependencies</report>
164                             <report>plugin-management</report>
165                             <report>plugins</report>
166                             <report>distribution-management</report>
167                         </reports>
168                     </reportSet>
169                 </reportSets>
170             </plugin>
171         </plugins>
172     </reporting>
173
174     <profiles>
175         <profile>
176             <id>jar-with-dependencies</id>
177             <build>
178                 <plugins>
179                     <plugin>
180                         <groupId>org.apache.maven.plugins</groupId>
181                         <artifactId>maven-assembly-plugin</artifactId>
182                         <version>${mavenAssemblyPluginVersion}</version>
183                         <configuration>
184                             <archive>
185                                 <manifest>
186                                     <addClasspath>true</addClasspath>
187                                     <classpathPrefix>lib/</classpathPrefix>
188                                     <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
189                                     <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
190                                     <mainClass>org.hedgecode.snooker.SnookerScoreApp</mainClass>
191                                 </manifest>
192                                 <manifestEntries>
193                                     <Implementation-Title>${project.artifactId}</Implementation-Title>
194                                 </manifestEntries>
195                             </archive>
196                             <descriptorRefs>
197                                 <descriptorRef>jar-with-dependencies</descriptorRef>
198                             </descriptorRefs>
199                         </configuration>
200                         <executions>
201                             <execution>
202                                 <id>make-assembly</id>
203                                 <phase>package</phase>
204                                 <goals>
205                                     <goal>single</goal>
206                                 </goals>
207                             </execution>
208                         </executions>
209                     </plugin>
210                 </plugins>
211             </build>
212         </profile>
213         <profile>
214             <id>reporting</id>
215             <reporting>
216                 <plugins>
217                     <plugin>
218                         <groupId>org.apache.maven.plugins</groupId>
219                         <artifactId>maven-javadoc-plugin</artifactId>
220                         <configuration>
221                             <sourceFileExcludes>
222                                 <exclude>org/hedgecode/snooker/annotation/*.java</exclude>
223                                 <exclude>org/hedgecode/snooker/cache/assign/*.java</exclude>
224                                 <exclude>org/hedgecode/snooker/compare/*.java</exclude>
225                                 <exclude>org/hedgecode/snooker/gson/*.java</exclude>
226                                 <exclude>org/hedgecode/snooker/json/*.java</exclude>
227                                 <exclude>org/hedgecode/snooker/request/*.java</exclude>
228                             </sourceFileExcludes>
229                         </configuration>
230                     </plugin>
231                 </plugins>
232             </reporting>
233         </profile>
234     </profiles>
235
236 </project>