pom.xml 19 KB

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