This repository was archived by the owner on May 25, 2020. It is now read-only.
forked from PGMDev/PGM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
251 lines (251 loc) · 10.4 KB
/
pom.xml
File metadata and controls
251 lines (251 loc) · 10.4 KB
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
241
242
243
244
245
246
247
248
249
250
251
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<groupId>tc.oc</groupId>
<artifactId>PGM</artifactId>
<version>1.8-SNAPSHOT</version>
<packaging>jar</packaging>
<repositories>
<repository>
<id>ashcon-app</id>
<url>https://repo.ashcon.app/content/repositories/snapshots</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>ashcon-app</id>
<url>https://repo.ashcon.app/content/repositories/snapshots</url>
</repository>
</distributionManagement>
<dependencies>
<!-- Fork of Spigot and SportBukkit running Minecraft 1.8 -->
<dependency>
<groupId>app.ashcon</groupId>
<artifactId>sportpaper</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
</dependency>
<!-- Command framework for developing simple commands -->
<dependency>
<groupId>app.ashcon.intake</groupId>
<artifactId>intake-bukkit</artifactId>
<version>1.1-SNAPSHOT</version>
</dependency>
<!-- Time convience libraries for "Instant" and "Duration" -->
<!-- TODO: Use Java 8's standard time libraries -->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.10.1</version>
</dependency>
<!-- Time formatting library used for parsing durations such as "1h30m" -->
<dependency>
<groupId>org.ocpsoft.prettytime</groupId>
<artifactId>prettytime</artifactId>
<version>3.2.5.Final</version>
</dependency>
<!-- XML parsing library used for all "map.xml" configuration loading -->
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.5</version>
</dependency>
<!-- Compile-time library used to generate "Delegate" classes -->
<!-- TODO: consider removing because unnecessary added complexity -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.10</version>
<scope>provided</scope>
</dependency>
<!-- Error logging libraries for Sentry integration -->
<dependency>
<groupId>net.kencochrane.raven</groupId>
<artifactId>raven</artifactId>
<version>5.0</version>
</dependency>
<dependency>
<groupId>net.kencochrane.raven</groupId>
<artifactId>raven-log4j2</artifactId>
<version>5.0</version>
</dependency>
<!-- Sqlite database driver as a persistent datastore -->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.28.0</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
<resources>
<!-- Include the required "plugin.yml" and optional "config.yml" for Bukkit -->
<resource>
<targetPath>.</targetPath>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/*.yml</include>
</includes>
<!-- Allows for variable substitution, see "plugin.yml" for an example -->
<filtering>true</filtering>
</resource>
<!-- Include a fallback set of maps that can be played "out-of-the-box" -->
<resource>
<targetPath>.</targetPath>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/*.zip</include>
</includes>
<!-- Explicitly disable filtering as it will corrupt the .zip of maps -->
<filtering>false</filtering>
</resource>
<!-- Include i18n translation sets for chat messages -->
<resource>
<directory>src/main/i18n/translations</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/i18n/templates</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
<artifactSet>
<excludes>
<exclude>app.ashcon:sportpaper:jar:*</exclude>
<exclude>app.ashcon.intake:intake-core:jar:*</exclude>
<exclude>com.google.code.findbugs:jsr305:jar:*</exclude>
</excludes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Exposes git information to the build environment -->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.2.4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<format>json</format>
</configuration>
</plugin>
<!-- Ensures that code is properly formatted using Google's code style -->
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.9</version>
<configuration>
<style>google</style>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Generates .zip resource of default maps provided in the maps/ folder -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<tasks>
<zip basedir="${basedir}/maps/" destfile="${basedir}/src/main/resources/maps.zip" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Optionally, builds an "out-of-the-box" PGM server as a Docker image -->
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>1.6.1</version>
<configuration>
<from>
<image>adoptopenjdk:11-jre-openj9</image>
</from>
<to>
<image>pgm</image>
<tags>
<tag>latest</tag>
</tags>
</to>
<container>
<mainClass>tc.oc.Server</mainClass>
<jvmFlags>
<jvmFlag>-showversion</jvmFlag>
<jvmFlag>-Xaggressive</jvmFlag>
<jvmFlag>-Xfastresolve</jvmFlag>
<jvmFlag>-Xcompressedrefs</jvmFlag>
<jvmFlag>-Xquickstart</jvmFlag>
<jvmFlag>-Xzero</jvmFlag>
<jvmFlag>-Xgcpolicy:metronome</jvmFlag>
<jvmFlag>-Xgc:targetPauseTime=100</jvmFlag>
<jvmFlag>-Xtune:elastic</jvmFlag>
<jvmFlag>-Xtune:virtualized</jvmFlag>
<jvmFlag>-XX:+UseContainerSupport</jvmFlag>
</jvmFlags>
<ports>
<port>25565/tcp</port>
</ports>
<volumes>
<volume>/server</volume>
</volumes>
<workingDirectory>/server</workingDirectory>
</container>
<extraDirectories>
<paths>deploy</paths>
</extraDirectories>
</configuration>
</plugin>
</plugins>
</build>
</project>