pom.xml 19 KB

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