pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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.2.010-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>17</maven.compiler.source>
  17. <maven.compiler.target>17</maven.compiler.target>
  18. <java.version>17</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-M7</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-M7</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>3.0.0-M6</version>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-compiler-plugin</artifactId>
  98. <version>3.10.1</version>
  99. <configuration>
  100. <release>17</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</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-key</include>
  139. <include>net.kyori:adventure-nbt</include>
  140. <include>net.kyori:adventure-platform-api</include>
  141. <include>net.kyori:adventure-platform-bukkit</include>
  142. <include>net.kyori:adventure-platform-facet</include>
  143. <include>net.kyori:adventure-platform-viaversion</include>
  144. <include>net.kyori:adventure-text-serializer-bungeecord</include>
  145. <include>net.kyori:adventure-text-serializer-gson</include>
  146. <include>net.kyori:adventure-text-serializer-gson-legacy-impl</include>
  147. <include>net.kyori:adventure-text-serializer-json</include>
  148. <include>net.kyori:adventure-text-serializer-json-legacy-impl</include>
  149. <include>net.kyori:adventure-text-serializer-legacy</include>
  150. <include>net.kyori:examination-api</include>
  151. <include>net.kyori:examination-string</include>
  152. <include>net.kyori:option</include>
  153. <include>net.kyori:adventure-text-serializer-craftbukkit</include>
  154. <include>co.aikar:acf-bukkit</include>
  155. <include>com.tcoded:FoliaLib</include>
  156. </includes>
  157. </artifactSet>
  158. <relocations>
  159. <relocation>
  160. <pattern>net.kyori</pattern>
  161. <shadedPattern>com.gmail.nossr50.mcmmo.kyori</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. <relocation>
  188. <pattern>com.tcoded.folialib</pattern>
  189. <shadedPattern>com.gmail.nossr50.mcmmo.folialib</shadedPattern>
  190. </relocation>
  191. </relocations>
  192. </configuration>
  193. <executions>
  194. <execution>
  195. <phase>package</phase>
  196. <goals>
  197. <goal>shade</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. <extensions>
  204. <extension>
  205. <groupId>org.apache.maven.wagon</groupId>
  206. <artifactId>wagon-file</artifactId>
  207. <version>3.5.2</version>
  208. </extension>
  209. </extensions>
  210. </build>
  211. <pluginRepositories>
  212. <pluginRepository>
  213. <id>maven-snapshots</id>
  214. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  215. </pluginRepository>
  216. </pluginRepositories>
  217. <repositories>
  218. <!-- Protocol Lib Repository -->
  219. <repository>
  220. <id>dmulloy2-repo</id>
  221. <url>https://repo.dmulloy2.net/repository/public/</url>
  222. </repository>
  223. <repository>
  224. <id>spigot-repo</id>
  225. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  226. </repository>
  227. <repository>
  228. <id>CodeMC</id>
  229. <url>https://repo.codemc.org/repository/maven-public</url>
  230. </repository>
  231. <repository>
  232. <id>enginehub-repo</id>
  233. <url>https://maven.enginehub.org/repo/</url>
  234. </repository>
  235. <repository> <!-- for development builds -->
  236. <id>sonatype-oss</id>
  237. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  238. </repository>
  239. <repository>
  240. <id>aikar</id>
  241. <url>https://repo.aikar.co/content/groups/aikar/</url>
  242. </repository>
  243. <repository>
  244. <id>sonatype-oss-snapshots1</id>
  245. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
  246. </repository>
  247. <repository>
  248. <id>placeholderapi</id>
  249. <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
  250. </repository>
  251. <repository>
  252. <id>devmart-other</id>
  253. <url>https://nexuslite.gcnt.net/repos/other/</url>
  254. </repository>
  255. <!-- MockBukkit -->
  256. <repository>
  257. <id>papermc</id>
  258. <url>https://repo.papermc.io/repository/maven-public/</url>
  259. </repository>
  260. </repositories>
  261. <dependencies>
  262. <!-- https://mvnrepository.com/artifact/com.h2database/h2 -->
  263. <dependency>
  264. <groupId>org.assertj</groupId>
  265. <artifactId>assertj-core</artifactId>
  266. <version>3.25.3</version>
  267. <scope>test</scope>
  268. </dependency>
  269. <dependency>
  270. <groupId>com.comphenix.protocol</groupId>
  271. <artifactId>ProtocolLib</artifactId>
  272. <version>LATEST</version>
  273. <scope>compile</scope>
  274. </dependency>
  275. <dependency>
  276. <groupId>com.h2database</groupId>
  277. <artifactId>h2</artifactId>
  278. <version>2.2.224</version>
  279. <scope>test</scope>
  280. </dependency>
  281. <dependency>
  282. <groupId>me.clip</groupId>
  283. <artifactId>placeholderapi</artifactId>
  284. <version>2.11.3</version>
  285. <scope>provided</scope>
  286. </dependency>
  287. <dependency>
  288. <groupId>co.aikar</groupId>
  289. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  290. <version>0.5.1-SNAPSHOT</version> <!-- Replace this as well -->
  291. </dependency>
  292. <dependency>
  293. <groupId>net.kyori</groupId>
  294. <artifactId>adventure-text-serializer-bungeecord</artifactId>
  295. <version>4.3.2</version>
  296. </dependency>
  297. <dependency>
  298. <groupId>net.kyori</groupId>
  299. <artifactId>adventure-text-serializer-gson</artifactId>
  300. <version>4.16.0</version>
  301. </dependency>
  302. <dependency>
  303. <groupId>net.kyori</groupId>
  304. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  305. <version>4.16.0</version>
  306. </dependency>
  307. <dependency>
  308. <groupId>net.kyori</groupId>
  309. <artifactId>adventure-text-serializer-json</artifactId>
  310. <version>4.16.0</version>
  311. </dependency>
  312. <dependency>
  313. <groupId>net.kyori</groupId>
  314. <artifactId>adventure-text-serializer-json-legacy-impl</artifactId>
  315. <version>4.16.0</version>
  316. </dependency>
  317. <dependency>
  318. <groupId>net.kyori</groupId>
  319. <artifactId>adventure-api</artifactId>
  320. <version>4.16.0</version>
  321. </dependency>
  322. <dependency>
  323. <groupId>net.kyori</groupId>
  324. <artifactId>adventure-nbt</artifactId>
  325. <version>4.16.0</version>
  326. </dependency>
  327. <dependency>
  328. <groupId>net.kyori</groupId>
  329. <artifactId>adventure-key</artifactId>
  330. <version>4.16.0</version>
  331. </dependency>
  332. <dependency>
  333. <groupId>net.kyori</groupId>
  334. <artifactId>adventure-platform-api</artifactId>
  335. <version>4.3.2</version>
  336. </dependency>
  337. <dependency>
  338. <groupId>net.kyori</groupId>
  339. <artifactId>adventure-platform-bukkit</artifactId>
  340. <version>LATEST</version>
  341. </dependency>
  342. <dependency>
  343. <groupId>net.kyori</groupId>
  344. <artifactId>adventure-platform-facet</artifactId>
  345. <version>4.3.2</version>
  346. </dependency>
  347. <dependency>
  348. <groupId>net.kyori</groupId>
  349. <artifactId>adventure-platform-viaversion</artifactId>
  350. <version>4.3.2</version>
  351. </dependency>
  352. <dependency>
  353. <groupId>net.kyori</groupId>
  354. <artifactId>option</artifactId>
  355. <version>1.0.0</version>
  356. </dependency>
  357. <dependency>
  358. <groupId>org.apache.maven.scm</groupId>
  359. <artifactId>maven-scm-provider-gitexe</artifactId>
  360. <version>2.0.0-M1</version>
  361. </dependency>
  362. <dependency>
  363. <groupId>org.bstats</groupId>
  364. <artifactId>bstats-bukkit</artifactId>
  365. <version>3.0.0</version>
  366. <scope>compile</scope>
  367. </dependency>
  368. <dependency>
  369. <groupId>org.spigotmc</groupId>
  370. <artifactId>spigot-api</artifactId>
  371. <version>1.20.5-R0.1-SNAPSHOT</version>
  372. <scope>provided</scope>
  373. </dependency>
  374. <dependency>
  375. <groupId>com.sk89q.worldedit</groupId>
  376. <artifactId>worldedit-bukkit</artifactId>
  377. <version>7.2.0-SNAPSHOT</version>
  378. <scope>provided</scope>
  379. </dependency>
  380. <dependency>
  381. <groupId>com.sk89q.worldguard</groupId>
  382. <artifactId>worldguard-core</artifactId>
  383. <version>7.0.7</version>
  384. <exclusions>
  385. <exclusion>
  386. <!-- We use jetbrains instead. Excluding this -->
  387. <!-- prevents us from using inconsistent annotations -->
  388. <groupId>com.google.code.findbugs</groupId>
  389. <artifactId>jsr305</artifactId>
  390. </exclusion>
  391. </exclusions>
  392. </dependency>
  393. <dependency>
  394. <groupId>com.sk89q.worldguard</groupId>
  395. <artifactId>worldguard-legacy</artifactId>
  396. <version>7.0.0-SNAPSHOT</version>
  397. <exclusions>
  398. <exclusion>
  399. <groupId>org.bukkit</groupId>
  400. <artifactId>bukkit</artifactId>
  401. </exclusion>
  402. </exclusions>
  403. </dependency>
  404. <dependency>
  405. <groupId>org.junit.jupiter</groupId>
  406. <artifactId>junit-jupiter</artifactId>
  407. <version>5.9.0</version>
  408. <scope>test</scope>
  409. </dependency>
  410. <dependency>
  411. <groupId>org.mockito</groupId>
  412. <artifactId>mockito-core</artifactId>
  413. <version>4.6.1</version>
  414. <scope>test</scope>
  415. </dependency>
  416. <dependency>
  417. <groupId>org.mockito</groupId>
  418. <artifactId>mockito-inline</artifactId>
  419. <version>4.6.1</version>
  420. <scope>test</scope>
  421. </dependency>
  422. <dependency>
  423. <groupId>org.apache.tomcat</groupId>
  424. <artifactId>tomcat-jdbc</artifactId>
  425. <version>10.1.0-M17</version>
  426. <scope>compile</scope>
  427. </dependency>
  428. <dependency>
  429. <groupId>org.jetbrains</groupId>
  430. <artifactId>annotations</artifactId>
  431. <version>23.0.0</version>
  432. </dependency>
  433. <dependency>
  434. <groupId>com.google.guava</groupId>
  435. <artifactId>guava</artifactId>
  436. <version>32.1.1-jre</version> <!-- At this time Spigot is including 29.0 Guava classes that we are using -->
  437. <scope>compile</scope>
  438. </dependency>
  439. <dependency>
  440. <groupId>com.tcoded</groupId>
  441. <artifactId>FoliaLib</artifactId>
  442. <version>0.3.1</version>
  443. <scope>compile</scope>
  444. </dependency>
  445. <!-- <dependency>-->
  446. <!-- <groupId>org.apache.logging.log4j</groupId>-->
  447. <!-- <artifactId>log4j-core</artifactId>-->
  448. <!-- <version>2.22.1</version> &lt;!&ndash; Make sure this version matches the other log4j dependencies &ndash;&gt;-->
  449. <!-- <scope>test</scope>-->
  450. <!-- </dependency>-->
  451. <!-- <dependency>-->
  452. <!-- <groupId>org.apache.logging.log4j</groupId>-->
  453. <!-- <artifactId>log4j-api</artifactId>-->
  454. <!-- <version>2.22.1</version>-->
  455. <!-- <scope>test</scope>-->
  456. <!-- </dependency>-->
  457. <!-- <dependency>-->
  458. <!-- <groupId>org.apache.logging.log4j</groupId>-->
  459. <!-- <artifactId>log4j-slf4j-impl</artifactId>-->
  460. <!-- <version>2.22.1</version>-->
  461. <!-- <scope>test</scope>-->
  462. <!-- </dependency>-->
  463. <!-- <dependency>-->
  464. <!-- <groupId>com.github.seeseemelk</groupId>-->
  465. <!-- <artifactId>MockBukkit-v1.19</artifactId>-->
  466. <!-- <version>LATEST</version>-->
  467. <!-- <scope>test</scope>-->
  468. <!-- </dependency>-->
  469. </dependencies>
  470. </project>