pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <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">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.gmail.nossr50.mcMMO</groupId>
  4. <artifactId>mcMMO</artifactId>
  5. <version>2.1.210-SNAPSHOT</version>
  6. <name>mcMMO</name>
  7. <url>https://github.com/mcMMO-Dev/mcMMO</url>
  8. <scm>
  9. <url>https://github.com/mcMMO-Dev/mcMMO</url>
  10. <connection>scm:git:git://github.com/mcMMO-Dev/mcMMO.git</connection>
  11. <developerConnection>scm:git:git@github.com:mcMMO-Dev/mcMMO.git</developerConnection>
  12. <tag>HEAD</tag>
  13. </scm>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <maven.compiler.source>16</maven.compiler.source>
  17. <maven.compiler.target>16</maven.compiler.target>
  18. <java.version>16</java.version>
  19. </properties>
  20. <issueManagement>
  21. <url>https://github.com/mcMMO-Dev/mcMMO/issues</url>
  22. <system>GitHub</system>
  23. </issueManagement>
  24. <packaging>jar</packaging>
  25. <distributionManagement>
  26. <repository>
  27. <id>neetgames</id>
  28. <url>https://nexus.neetgames.com/repository/maven-releases/</url>
  29. </repository>
  30. <snapshotRepository>
  31. <id>neetgames</id>
  32. <url>https://nexus.neetgames.com/repository/maven-snapshots/</url>
  33. </snapshotRepository>
  34. </distributionManagement>
  35. <build>
  36. <finalName>${project.artifactId}</finalName>
  37. <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
  38. <resources>
  39. <resource>
  40. <targetPath>.</targetPath>
  41. <filtering>true</filtering>
  42. <directory>${basedir}/src/main/resources/</directory>
  43. <includes>
  44. <include>*.yml</include>
  45. <include>.jenkins</include>
  46. </includes>
  47. </resource>
  48. <resource>
  49. <targetPath>com/gmail/nossr50/locale</targetPath>
  50. <filtering>true</filtering>
  51. <directory>${basedir}/src/main/resources/locale/</directory>
  52. <includes>
  53. <include>locale*.properties</include>
  54. </includes>
  55. </resource>
  56. <resource>
  57. <targetPath>mods</targetPath>
  58. <filtering>true</filtering>
  59. <directory>${basedir}/src/main/resources/mods</directory>
  60. <includes>
  61. <include>*.yml</include>
  62. </includes>
  63. </resource>
  64. <resource>
  65. <targetPath>.</targetPath>
  66. <filtering>true</filtering>
  67. <directory>${basedir}</directory>
  68. <includes>
  69. <include>LICENSE</include>
  70. </includes>
  71. </resource>
  72. </resources>
  73. <plugins>
  74. <plugin>
  75. <artifactId>maven-surefire-plugin</artifactId>
  76. <version>3.0.0-M5</version>
  77. <configuration>
  78. <junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
  79. <trimStackTrace>false</trimStackTrace>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <artifactId>maven-failsafe-plugin</artifactId>
  84. <version>3.0.0-M5</version>
  85. <configuration>
  86. <junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
  87. <trimStackTrace>false</trimStackTrace>
  88. </configuration>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-release-plugin</artifactId>
  93. <version>2.5.2</version>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-compiler-plugin</artifactId>
  98. <version>3.8.1</version>
  99. <configuration>
  100. <release>16</release>
  101. <compilerArgs>
  102. <arg>-parameters</arg> <!-- used for ACF syntax stuff -->
  103. </compilerArgs>
  104. <excludes>
  105. </excludes>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <artifactId>maven-assembly-plugin</artifactId>
  110. <configuration>
  111. <descriptors>
  112. <descriptor>src/main/assembly/package.xml</descriptor>
  113. </descriptors>
  114. </configuration>
  115. <executions>
  116. <execution>
  117. <id>build</id>
  118. <phase>package</phase>
  119. <goals>
  120. <goal>single</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-shade-plugin</artifactId>
  128. <version>3.3.0-SNAPSHOT</version>
  129. <configuration>
  130. <artifactSet>
  131. <includes>
  132. <include>commons-logging:commons-logging</include>
  133. <include>org.apache.tomcat:tomcat-jdbc</include>
  134. <include>org.apache.tomcat:tomcat-juli</include>
  135. <include>org.bstats:bstats-base</include>
  136. <include>org.bstats:bstats-bukkit</include>
  137. <include>net.kyori:adventure-api</include>
  138. <include>net.kyori:adventure-text-serializer-gson</include>
  139. <include>net.kyori:adventure-platform-bukkit</include>
  140. <include>net.kyori:adventure-platform-api</include>
  141. <include>net.kyori:adventure-platform-viaversion</include>
  142. <include>net.kyori:adventure-platform-facet</include>
  143. <include>net.kyori:adventure-nbt</include>
  144. <include>net.kyori:adventure-key</include>
  145. <include>net.kyori:examination-api</include>
  146. <include>net.kyori:examination-string</include>
  147. <include>net.kyori:adventure-text-serializer-legacy</include>
  148. <include>net.kyori:adventure-text-serializer-bungeecord</include>
  149. <include>net.kyori:adventure-text-serializer-craftbukkit</include>
  150. <include>net.kyori:adventure-text-serializer-gson-legacy-impl</include>
  151. <include>co.aikar:acf-bukkit</include>
  152. </includes>
  153. </artifactSet>
  154. <relocations>
  155. <relocation>
  156. <pattern>net.kyori.examination</pattern>
  157. <shadedPattern>com.gmail.nossr50.mcmmo.kyori.examination</shadedPattern>
  158. </relocation>
  159. <relocation>
  160. <pattern>net.kyori.adventure</pattern>
  161. <shadedPattern>com.gmail.nossr50.mcmmo.kyori.adventure</shadedPattern>
  162. </relocation>
  163. <relocation>
  164. <pattern>co.aikar.commands</pattern>
  165. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  166. </relocation>
  167. <relocation>
  168. <pattern>co.aikar.locales</pattern>
  169. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  170. </relocation>
  171. <relocation>
  172. <pattern>org.apache.commons.logging</pattern>
  173. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  174. </relocation>
  175. <relocation>
  176. <pattern>org.apache.juli</pattern>
  177. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  178. </relocation>
  179. <relocation>
  180. <pattern>org.apache.tomcat</pattern>
  181. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  182. </relocation>
  183. <relocation>
  184. <pattern>org.bstats</pattern>
  185. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstats</shadedPattern>
  186. </relocation>
  187. </relocations>
  188. </configuration>
  189. <executions>
  190. <execution>
  191. <phase>package</phase>
  192. <goals>
  193. <goal>shade</goal>
  194. </goals>
  195. </execution>
  196. </executions>
  197. </plugin>
  198. </plugins>
  199. <extensions>
  200. <extension>
  201. <groupId>org.apache.maven.wagon</groupId>
  202. <artifactId>wagon-file</artifactId>
  203. <version>2.2</version>
  204. </extension>
  205. </extensions>
  206. </build>
  207. <pluginRepositories>
  208. <pluginRepository>
  209. <id>maven-snapshots</id>
  210. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  211. </pluginRepository>
  212. </pluginRepositories>
  213. <repositories>
  214. <repository>
  215. <id>spigot-repo</id>
  216. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  217. </repository>
  218. <repository>
  219. <id>CodeMC</id>
  220. <url>https://repo.codemc.org/repository/maven-public</url>
  221. </repository>
  222. <repository>
  223. <id>sk89q-repo</id>
  224. <url>https://maven.sk89q.com/repo/</url>
  225. </repository>
  226. <repository> <!-- for development builds -->
  227. <id>sonatype-oss</id>
  228. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  229. </repository>
  230. <repository>
  231. <id>aikar</id>
  232. <url>https://repo.aikar.co/content/groups/aikar/</url>
  233. </repository>
  234. <!-- ... -->
  235. <!-- ... -->
  236. </repositories>
  237. <dependencies>
  238. <dependency>
  239. <groupId>co.aikar</groupId>
  240. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  241. <version>0.5.0-SNAPSHOT</version> <!-- Replace this as well -->
  242. </dependency>
  243. <!-- adventure-api, adventure-text-serializer-gson, adventure-platform-bukkit-->
  244. <dependency>
  245. <groupId>net.kyori</groupId>
  246. <artifactId>adventure-text-serializer-gson</artifactId>
  247. <version>4.9.3</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>net.kyori</groupId>
  251. <artifactId>adventure-api</artifactId>
  252. <version>4.9.3</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>net.kyori</groupId>
  256. <artifactId>adventure-nbt</artifactId>
  257. <version>4.9.3</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>net.kyori</groupId>
  261. <artifactId>adventure-key</artifactId>
  262. <version>4.9.3</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>net.kyori</groupId>
  266. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  267. <version>4.9.3</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>net.kyori</groupId>
  271. <artifactId>adventure-platform-bukkit</artifactId>
  272. <version>4.0.1</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>net.kyori</groupId>
  276. <artifactId>adventure-platform-api</artifactId>
  277. <version>4.0.1</version>
  278. </dependency>
  279. <dependency>
  280. <groupId>org.apache.maven.scm</groupId>
  281. <artifactId>maven-scm-provider-gitexe</artifactId>
  282. <version>1.12.0</version>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.bstats</groupId>
  286. <artifactId>bstats-bukkit</artifactId>
  287. <version>2.2.1</version>
  288. <scope>compile</scope>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.spigotmc</groupId>
  292. <artifactId>spigot-api</artifactId>
  293. <version>1.18.1-R0.1-SNAPSHOT</version>
  294. <scope>provided</scope>
  295. </dependency>
  296. <dependency>
  297. <groupId>com.sk89q.worldguard</groupId>
  298. <artifactId>worldguard-core</artifactId>
  299. <version>7.0.4</version>
  300. <exclusions>
  301. <exclusion>
  302. <!-- We use jetbrains instead. Excluding this -->
  303. <!-- prevents us from using inconsistent annotations -->
  304. <groupId>com.google.code.findbugs</groupId>
  305. <artifactId>jsr305</artifactId>
  306. </exclusion>
  307. </exclusions>
  308. </dependency>
  309. <dependency>
  310. <groupId>com.sk89q.worldguard</groupId>
  311. <artifactId>worldguard-legacy</artifactId>
  312. <version>7.0.0-SNAPSHOT</version>
  313. <exclusions>
  314. <exclusion>
  315. <groupId>org.bukkit</groupId>
  316. <artifactId>bukkit</artifactId>
  317. </exclusion>
  318. </exclusions>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.junit.jupiter</groupId>
  322. <artifactId>junit-jupiter</artifactId>
  323. <version>5.8.2</version>
  324. <scope>test</scope>
  325. </dependency>
  326. <dependency>
  327. <groupId>org.mockito</groupId>
  328. <artifactId>mockito-core</artifactId>
  329. <version>4.2.0</version>
  330. <scope>test</scope>
  331. </dependency>
  332. <dependency>
  333. <groupId>org.mockito</groupId>
  334. <artifactId>mockito-inline</artifactId>
  335. <version>4.2.0</version>
  336. <scope>test</scope>
  337. </dependency>
  338. <dependency>
  339. <groupId>org.apache.tomcat</groupId>
  340. <artifactId>tomcat-jdbc</artifactId>
  341. <version>10.0.14</version>
  342. <scope>compile</scope>
  343. </dependency>
  344. <dependency>
  345. <groupId>org.jetbrains</groupId>
  346. <artifactId>annotations</artifactId>
  347. <version>22.0.0</version>
  348. </dependency>
  349. <dependency>
  350. <groupId>com.google.guava</groupId>
  351. <artifactId>guava</artifactId>
  352. <version>31.0.1-jre</version> <!-- At this time Spigot is including 29.0 Guava classes that we are using -->
  353. <scope>compile</scope>
  354. </dependency>
  355. </dependencies>
  356. </project>