pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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.1.228</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>16</maven.compiler.source>
  17. <maven.compiler.target>16</maven.compiler.target>
  18. <java.version>16</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>16</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-text-serializer-gson</include>
  139. <include>net.kyori:adventure-platform-bukkit</include>
  140. <include>net.kyori:adventure-platform-api</include>
  141. <include>net.kyori:adventure-platform-viaversion</include>
  142. <include>net.kyori:adventure-platform-facet</include>
  143. <include>net.kyori:adventure-nbt</include>
  144. <include>net.kyori:adventure-key</include>
  145. <include>net.kyori:examination-api</include>
  146. <include>net.kyori:examination-string</include>
  147. <include>net.kyori:adventure-text-serializer-legacy</include>
  148. <include>net.kyori:adventure-text-serializer-gson</include>
  149. <include>net.kyori:adventure-text-serializer-json</include>
  150. <include>net.kyori:adventure-text-serializer-bungeecord</include>
  151. <include>net.kyori:adventure-text-serializer-craftbukkit</include>
  152. <include>net.kyori:adventure-text-serializer-gson-legacy-impl</include>
  153. <include>net.kyori:adventure-text-serializer-json-legacy-impl</include>
  154. <include>net.kyori:option</include>
  155. <include>co.aikar:acf-bukkit</include>
  156. <include>com.tcoded:FoliaLib</include>
  157. </includes>
  158. </artifactSet>
  159. <relocations>
  160. <relocation>
  161. <pattern>net.kyori</pattern>
  162. <shadedPattern>com.gmail.nossr50.mcmmo.kyori</shadedPattern>
  163. </relocation>
  164. <relocation>
  165. <pattern>co.aikar.commands</pattern>
  166. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  167. </relocation>
  168. <relocation>
  169. <pattern>co.aikar.locales</pattern>
  170. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  171. </relocation>
  172. <relocation>
  173. <pattern>org.apache.commons.logging</pattern>
  174. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  175. </relocation>
  176. <relocation>
  177. <pattern>org.apache.juli</pattern>
  178. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  179. </relocation>
  180. <relocation>
  181. <pattern>org.apache.tomcat</pattern>
  182. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  183. </relocation>
  184. <relocation>
  185. <pattern>org.bstats</pattern>
  186. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstats</shadedPattern>
  187. </relocation>
  188. <relocation>
  189. <pattern>com.tcoded.folialib</pattern>
  190. <shadedPattern>com.gmail.nossr50.mcmmo.folialib</shadedPattern>
  191. </relocation>
  192. </relocations>
  193. </configuration>
  194. <executions>
  195. <execution>
  196. <phase>package</phase>
  197. <goals>
  198. <goal>shade</goal>
  199. </goals>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. </plugins>
  204. <extensions>
  205. <extension>
  206. <groupId>org.apache.maven.wagon</groupId>
  207. <artifactId>wagon-file</artifactId>
  208. <version>3.5.2</version>
  209. </extension>
  210. </extensions>
  211. </build>
  212. <pluginRepositories>
  213. <pluginRepository>
  214. <id>maven-snapshots</id>
  215. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  216. </pluginRepository>
  217. </pluginRepositories>
  218. <repositories>
  219. <repository>
  220. <id>spigot-repo</id>
  221. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  222. </repository>
  223. <repository>
  224. <id>CodeMC</id>
  225. <url>https://repo.codemc.org/repository/maven-public</url>
  226. </repository>
  227. <repository>
  228. <id>enginehub-repo</id>
  229. <url>https://maven.enginehub.org/repo/</url>
  230. </repository>
  231. <repository> <!-- for development builds -->
  232. <id>sonatype-oss</id>
  233. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  234. </repository>
  235. <repository>
  236. <id>aikar</id>
  237. <url>https://repo.aikar.co/content/groups/aikar/</url>
  238. </repository>
  239. <repository>
  240. <id>sonatype-oss-snapshots1</id>
  241. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
  242. </repository>
  243. <repository>
  244. <id>placeholderapi</id>
  245. <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
  246. </repository>
  247. <repository>
  248. <id>devmart-other</id>
  249. <url>https://nexuslite.gcnt.net/repos/other/</url>
  250. </repository>
  251. <!-- ... -->
  252. <!-- ... -->
  253. </repositories>
  254. <dependencies>
  255. <dependency>
  256. <groupId>me.clip</groupId>
  257. <artifactId>placeholderapi</artifactId>
  258. <version>2.11.3</version>
  259. <scope>provided</scope>
  260. </dependency>
  261. <dependency>
  262. <groupId>co.aikar</groupId>
  263. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  264. <version>0.5.1-SNAPSHOT</version> <!-- Replace this as well -->
  265. </dependency>
  266. <dependency>
  267. <groupId>net.kyori</groupId>
  268. <artifactId>adventure-text-serializer-bungeecord</artifactId>
  269. <version>4.3.2</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>net.kyori</groupId>
  273. <artifactId>adventure-text-serializer-gson</artifactId>
  274. <version>4.15.0</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>net.kyori</groupId>
  278. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  279. <version>4.15.0</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>net.kyori</groupId>
  283. <artifactId>adventure-text-serializer-json</artifactId>
  284. <version>4.15.0</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>net.kyori</groupId>
  288. <artifactId>adventure-text-serializer-json-legacy-impl</artifactId>
  289. <version>4.15.0</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>net.kyori</groupId>
  293. <artifactId>adventure-api</artifactId>
  294. <version>4.15.0</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>net.kyori</groupId>
  298. <artifactId>adventure-nbt</artifactId>
  299. <version>4.15.0</version>
  300. </dependency>
  301. <dependency>
  302. <groupId>net.kyori</groupId>
  303. <artifactId>adventure-key</artifactId>
  304. <version>4.15.0</version>
  305. </dependency>
  306. <dependency>
  307. <groupId>net.kyori</groupId>
  308. <artifactId>adventure-platform-api</artifactId>
  309. <version>4.3.2</version>
  310. </dependency>
  311. <dependency>
  312. <groupId>net.kyori</groupId>
  313. <artifactId>adventure-platform-bukkit</artifactId>
  314. <version>4.3.2</version>
  315. </dependency>
  316. <dependency>
  317. <groupId>net.kyori</groupId>
  318. <artifactId>adventure-platform-facet</artifactId>
  319. <version>4.3.2</version>
  320. </dependency>
  321. <dependency>
  322. <groupId>net.kyori</groupId>
  323. <artifactId>adventure-platform-viaversion</artifactId>
  324. <version>4.3.2</version>
  325. </dependency>
  326. <dependency>
  327. <groupId>net.kyori</groupId>
  328. <artifactId>option</artifactId>
  329. <version>1.0.0</version>
  330. </dependency>
  331. <dependency>
  332. <groupId>org.apache.maven.scm</groupId>
  333. <artifactId>maven-scm-provider-gitexe</artifactId>
  334. <version>2.0.0-M1</version>
  335. </dependency>
  336. <dependency>
  337. <groupId>org.bstats</groupId>
  338. <artifactId>bstats-bukkit</artifactId>
  339. <version>3.0.0</version>
  340. <scope>compile</scope>
  341. </dependency>
  342. <dependency>
  343. <groupId>org.spigotmc</groupId>
  344. <artifactId>spigot-api</artifactId>
  345. <version>1.20.4-R0.1-SNAPSHOT</version>
  346. <scope>provided</scope>
  347. </dependency>
  348. <dependency>
  349. <groupId>com.sk89q.worldedit</groupId>
  350. <artifactId>worldedit-bukkit</artifactId>
  351. <version>7.2.0-SNAPSHOT</version>
  352. <scope>provided</scope>
  353. </dependency>
  354. <dependency>
  355. <groupId>com.sk89q.worldguard</groupId>
  356. <artifactId>worldguard-core</artifactId>
  357. <version>7.0.7</version>
  358. <exclusions>
  359. <exclusion>
  360. <!-- We use jetbrains instead. Excluding this -->
  361. <!-- prevents us from using inconsistent annotations -->
  362. <groupId>com.google.code.findbugs</groupId>
  363. <artifactId>jsr305</artifactId>
  364. </exclusion>
  365. </exclusions>
  366. </dependency>
  367. <dependency>
  368. <groupId>com.sk89q.worldguard</groupId>
  369. <artifactId>worldguard-legacy</artifactId>
  370. <version>7.0.0-SNAPSHOT</version>
  371. <exclusions>
  372. <exclusion>
  373. <groupId>org.bukkit</groupId>
  374. <artifactId>bukkit</artifactId>
  375. </exclusion>
  376. </exclusions>
  377. </dependency>
  378. <dependency>
  379. <groupId>org.junit.jupiter</groupId>
  380. <artifactId>junit-jupiter</artifactId>
  381. <version>5.9.0</version>
  382. <scope>test</scope>
  383. </dependency>
  384. <dependency>
  385. <groupId>org.mockito</groupId>
  386. <artifactId>mockito-core</artifactId>
  387. <version>4.6.1</version>
  388. <scope>test</scope>
  389. </dependency>
  390. <dependency>
  391. <groupId>org.mockito</groupId>
  392. <artifactId>mockito-inline</artifactId>
  393. <version>4.6.1</version>
  394. <scope>test</scope>
  395. </dependency>
  396. <dependency>
  397. <groupId>org.apache.tomcat</groupId>
  398. <artifactId>tomcat-jdbc</artifactId>
  399. <version>10.1.0-M17</version>
  400. <scope>compile</scope>
  401. </dependency>
  402. <dependency>
  403. <groupId>org.jetbrains</groupId>
  404. <artifactId>annotations</artifactId>
  405. <version>23.0.0</version>
  406. </dependency>
  407. <dependency>
  408. <groupId>com.google.guava</groupId>
  409. <artifactId>guava</artifactId>
  410. <version>32.1.1-jre</version> <!-- At this time Spigot is including 29.0 Guava classes that we are using -->
  411. <scope>compile</scope>
  412. </dependency>
  413. <dependency>
  414. <groupId>com.tcoded</groupId>
  415. <artifactId>FoliaLib</artifactId>
  416. <version>0.3.1</version>
  417. <scope>compile</scope>
  418. </dependency>
  419. </dependencies>
  420. </project>