2
0

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