pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  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.015-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.2.5</version>
  77. <configuration>
  78. <junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
  79. <trimStackTrace>false</trimStackTrace>
  80. <excludedGroups>skip</excludedGroups>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <artifactId>maven-failsafe-plugin</artifactId>
  85. <version>3.2.5</version>
  86. <configuration>
  87. <junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
  88. <trimStackTrace>false</trimStackTrace>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-release-plugin</artifactId>
  94. <version>3.0.1</version>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-compiler-plugin</artifactId>
  99. <version>3.13.0</version>
  100. <configuration>
  101. <release>17</release>
  102. <compilerArgs>
  103. <arg>-parameters</arg> <!-- used for ACF syntax stuff -->
  104. </compilerArgs>
  105. <excludes>
  106. </excludes>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-assembly-plugin</artifactId>
  111. <version>3.7.1</version>
  112. <configuration>
  113. <descriptors>
  114. <descriptor>src/main/assembly/package.xml</descriptor>
  115. </descriptors>
  116. </configuration>
  117. <executions>
  118. <execution>
  119. <id>build</id>
  120. <phase>package</phase>
  121. <goals>
  122. <goal>single</goal>
  123. </goals>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-shade-plugin</artifactId>
  130. <version>3.5.3</version>
  131. <configuration>
  132. <artifactSet>
  133. <includes>
  134. <include>commons-logging:commons-logging</include>
  135. <include>org.apache.tomcat:tomcat-jdbc</include>
  136. <include>org.apache.tomcat:tomcat-juli</include>
  137. <include>org.bstats:bstats-base</include>
  138. <include>org.bstats:bstats-bukkit</include>
  139. <include>net.kyori:adventure-api</include>
  140. <include>net.kyori:adventure-key</include>
  141. <include>net.kyori:adventure-nbt</include>
  142. <include>net.kyori:adventure-platform-api</include>
  143. <include>net.kyori:adventure-platform-bukkit</include>
  144. <include>net.kyori:adventure-platform-facet</include>
  145. <include>net.kyori:adventure-platform-viaversion</include>
  146. <include>net.kyori:adventure-text-serializer-bungeecord</include>
  147. <include>net.kyori:adventure-text-serializer-gson</include>
  148. <include>net.kyori:adventure-text-serializer-gson-legacy-impl</include>
  149. <include>net.kyori:adventure-text-serializer-json</include>
  150. <include>net.kyori:adventure-text-serializer-json-legacy-impl</include>
  151. <include>net.kyori:adventure-text-serializer-legacy</include>
  152. <include>net.kyori:examination-api</include>
  153. <include>net.kyori:examination-string</include>
  154. <include>net.kyori:option</include>
  155. <include>net.kyori:adventure-text-serializer-craftbukkit</include>
  156. <include>co.aikar:acf-bukkit</include>
  157. <include>com.tcoded:FoliaLib</include>
  158. </includes>
  159. </artifactSet>
  160. <relocations>
  161. <relocation>
  162. <pattern>net.kyori</pattern>
  163. <shadedPattern>com.gmail.nossr50.mcmmo.kyori</shadedPattern>
  164. </relocation>
  165. <relocation>
  166. <pattern>co.aikar.commands</pattern>
  167. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  168. </relocation>
  169. <relocation>
  170. <pattern>co.aikar.locales</pattern>
  171. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  172. </relocation>
  173. <relocation>
  174. <pattern>org.apache.commons.logging</pattern>
  175. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  176. </relocation>
  177. <relocation>
  178. <pattern>org.apache.juli</pattern>
  179. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  180. </relocation>
  181. <relocation>
  182. <pattern>org.apache.tomcat</pattern>
  183. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  184. </relocation>
  185. <relocation>
  186. <pattern>org.bstats</pattern>
  187. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstats</shadedPattern>
  188. </relocation>
  189. <relocation>
  190. <pattern>com.tcoded.folialib</pattern>
  191. <shadedPattern>com.gmail.nossr50.mcmmo.folialib</shadedPattern>
  192. </relocation>
  193. </relocations>
  194. </configuration>
  195. <executions>
  196. <execution>
  197. <phase>package</phase>
  198. <goals>
  199. <goal>shade</goal>
  200. </goals>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. </plugins>
  205. <extensions>
  206. <extension>
  207. <groupId>org.apache.maven.wagon</groupId>
  208. <artifactId>wagon-file</artifactId>
  209. <version>3.5.2</version>
  210. </extension>
  211. </extensions>
  212. </build>
  213. <pluginRepositories>
  214. <pluginRepository>
  215. <id>maven-snapshots</id>
  216. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  217. </pluginRepository>
  218. </pluginRepositories>
  219. <repositories>
  220. <!-- Protocol Lib Repository -->
  221. <repository>
  222. <id>dmulloy2-repo</id>
  223. <url>https://repo.dmulloy2.net/repository/public/</url>
  224. </repository>
  225. <repository>
  226. <id>spigot-repo</id>
  227. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  228. </repository>
  229. <repository>
  230. <id>CodeMC</id>
  231. <url>https://repo.codemc.org/repository/maven-public</url>
  232. </repository>
  233. <repository>
  234. <id>enginehub-repo</id>
  235. <url>https://maven.enginehub.org/repo/</url>
  236. </repository>
  237. <repository> <!-- for development builds -->
  238. <id>sonatype-oss</id>
  239. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  240. </repository>
  241. <repository>
  242. <id>aikar</id>
  243. <url>https://repo.aikar.co/content/groups/aikar/</url>
  244. </repository>
  245. <repository>
  246. <id>sonatype-oss-snapshots1</id>
  247. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
  248. </repository>
  249. <repository>
  250. <id>placeholderapi</id>
  251. <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
  252. </repository>
  253. <repository>
  254. <id>devmart-other</id>
  255. <url>https://nexuslite.gcnt.net/repos/other/</url>
  256. </repository>
  257. <!-- MockBukkit -->
  258. <repository>
  259. <id>papermc</id>
  260. <url>https://repo.papermc.io/repository/maven-public/</url>
  261. </repository>
  262. </repositories>
  263. <dependencies>
  264. <!-- https://mvnrepository.com/artifact/com.h2database/h2 -->
  265. <dependency>
  266. <groupId>org.assertj</groupId>
  267. <artifactId>assertj-core</artifactId>
  268. <version>3.25.3</version>
  269. <scope>test</scope>
  270. </dependency>
  271. <dependency>
  272. <groupId>com.comphenix.protocol</groupId>
  273. <artifactId>ProtocolLib</artifactId>
  274. <version>LATEST</version>
  275. <scope>compile</scope>
  276. </dependency>
  277. <dependency>
  278. <groupId>com.h2database</groupId>
  279. <artifactId>h2</artifactId>
  280. <version>2.2.224</version>
  281. <scope>test</scope>
  282. </dependency>
  283. <dependency>
  284. <groupId>me.clip</groupId>
  285. <artifactId>placeholderapi</artifactId>
  286. <version>2.11.3</version>
  287. <scope>provided</scope>
  288. </dependency>
  289. <dependency>
  290. <groupId>co.aikar</groupId>
  291. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  292. <version>0.5.1-SNAPSHOT</version> <!-- Replace this as well -->
  293. </dependency>
  294. <dependency>
  295. <groupId>net.kyori</groupId>
  296. <artifactId>adventure-text-serializer-bungeecord</artifactId>
  297. <version>4.3.2</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>net.kyori</groupId>
  301. <artifactId>adventure-text-serializer-gson</artifactId>
  302. <version>4.17.0</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>net.kyori</groupId>
  306. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  307. <version>4.17.0</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>net.kyori</groupId>
  311. <artifactId>adventure-text-serializer-json</artifactId>
  312. <version>4.17.0</version>
  313. </dependency>
  314. <dependency>
  315. <groupId>net.kyori</groupId>
  316. <artifactId>adventure-text-serializer-json-legacy-impl</artifactId>
  317. <version>4.17.0</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>net.kyori</groupId>
  321. <artifactId>adventure-api</artifactId>
  322. <version>4.17.0</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>net.kyori</groupId>
  326. <artifactId>adventure-nbt</artifactId>
  327. <version>4.17.0</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>net.kyori</groupId>
  331. <artifactId>adventure-key</artifactId>
  332. <version>4.17.0</version>
  333. </dependency>
  334. <dependency>
  335. <groupId>net.kyori</groupId>
  336. <artifactId>adventure-platform-api</artifactId>
  337. <version>4.3.3</version>
  338. </dependency>
  339. <dependency>
  340. <groupId>net.kyori</groupId>
  341. <artifactId>adventure-platform-bukkit</artifactId>
  342. <version>LATEST</version>
  343. </dependency>
  344. <dependency>
  345. <groupId>net.kyori</groupId>
  346. <artifactId>adventure-platform-facet</artifactId>
  347. <version>4.3.3</version>
  348. </dependency>
  349. <dependency>
  350. <groupId>net.kyori</groupId>
  351. <artifactId>adventure-platform-viaversion</artifactId>
  352. <version>4.3.3</version>
  353. </dependency>
  354. <dependency>
  355. <groupId>net.kyori</groupId>
  356. <artifactId>option</artifactId>
  357. <version>1.0.0</version>
  358. </dependency>
  359. <dependency>
  360. <groupId>org.apache.maven.scm</groupId>
  361. <artifactId>maven-scm-provider-gitexe</artifactId>
  362. <version>2.1.0</version>
  363. </dependency>
  364. <dependency>
  365. <groupId>org.bstats</groupId>
  366. <artifactId>bstats-bukkit</artifactId>
  367. <version>3.0.2</version>
  368. <scope>compile</scope>
  369. </dependency>
  370. <dependency>
  371. <groupId>org.spigotmc</groupId>
  372. <artifactId>spigot-api</artifactId>
  373. <version>1.21-R0.1-SNAPSHOT</version>
  374. <scope>provided</scope>
  375. </dependency>
  376. <dependency>
  377. <groupId>com.sk89q.worldedit</groupId>
  378. <artifactId>worldedit-bukkit</artifactId>
  379. <version>7.2.0-SNAPSHOT</version>
  380. <scope>provided</scope>
  381. </dependency>
  382. <dependency>
  383. <groupId>com.sk89q.worldguard</groupId>
  384. <artifactId>worldguard-core</artifactId>
  385. <version>7.0.7</version>
  386. <exclusions>
  387. <exclusion>
  388. <!-- We use jetbrains instead. Excluding this -->
  389. <!-- prevents us from using inconsistent annotations -->
  390. <groupId>com.google.code.findbugs</groupId>
  391. <artifactId>jsr305</artifactId>
  392. </exclusion>
  393. </exclusions>
  394. </dependency>
  395. <dependency>
  396. <groupId>com.sk89q.worldguard</groupId>
  397. <artifactId>worldguard-legacy</artifactId>
  398. <version>7.0.0-SNAPSHOT</version>
  399. <exclusions>
  400. <exclusion>
  401. <groupId>org.bukkit</groupId>
  402. <artifactId>bukkit</artifactId>
  403. </exclusion>
  404. </exclusions>
  405. </dependency>
  406. <dependency>
  407. <groupId>org.junit.jupiter</groupId>
  408. <artifactId>junit-jupiter</artifactId>
  409. <version>5.11.0-M2</version>
  410. <scope>test</scope>
  411. </dependency>
  412. <dependency>
  413. <groupId>org.mockito</groupId>
  414. <artifactId>mockito-core</artifactId>
  415. <version>5.12.0</version>
  416. <scope>test</scope>
  417. </dependency>
  418. <dependency>
  419. <groupId>org.mockito</groupId>
  420. <artifactId>mockito-inline</artifactId>
  421. <version>5.2.0</version>
  422. <scope>test</scope>
  423. </dependency>
  424. <dependency>
  425. <groupId>org.apache.tomcat</groupId>
  426. <artifactId>tomcat-jdbc</artifactId>
  427. <version>10.1.24</version>
  428. <scope>compile</scope>
  429. </dependency>
  430. <dependency>
  431. <groupId>org.jetbrains</groupId>
  432. <artifactId>annotations</artifactId>
  433. <version>24.1.0</version>
  434. </dependency>
  435. <dependency>
  436. <groupId>com.google.guava</groupId>
  437. <artifactId>guava</artifactId>
  438. <version>33.2.0-jre</version> <!-- At this time Spigot is including 29.0 Guava classes that we are using -->
  439. <scope>compile</scope>
  440. </dependency>
  441. <dependency>
  442. <groupId>com.tcoded</groupId>
  443. <artifactId>FoliaLib</artifactId>
  444. <version>0.3.1</version>
  445. <scope>compile</scope>
  446. </dependency>
  447. <!-- <dependency>-->
  448. <!-- <groupId>org.apache.logging.log4j</groupId>-->
  449. <!-- <artifactId>log4j-core</artifactId>-->
  450. <!-- <version>2.22.1</version> &lt;!&ndash; Make sure this version matches the other log4j dependencies &ndash;&gt;-->
  451. <!-- <scope>test</scope>-->
  452. <!-- </dependency>-->
  453. <!-- <dependency>-->
  454. <!-- <groupId>org.apache.logging.log4j</groupId>-->
  455. <!-- <artifactId>log4j-api</artifactId>-->
  456. <!-- <version>2.22.1</version>-->
  457. <!-- <scope>test</scope>-->
  458. <!-- </dependency>-->
  459. <!-- <dependency>-->
  460. <!-- <groupId>org.apache.logging.log4j</groupId>-->
  461. <!-- <artifactId>log4j-slf4j-impl</artifactId>-->
  462. <!-- <version>2.22.1</version>-->
  463. <!-- <scope>test</scope>-->
  464. <!-- </dependency>-->
  465. <!-- <dependency>-->
  466. <!-- <groupId>com.github.seeseemelk</groupId>-->
  467. <!-- <artifactId>MockBukkit-v1.19</artifactId>-->
  468. <!-- <version>LATEST</version>-->
  469. <!-- <scope>test</scope>-->
  470. <!-- </dependency>-->
  471. </dependencies>
  472. </project>