pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  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.000-ALPHA-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. </properties>
  17. <issueManagement>
  18. <url>https://github.com/mcMMO-Dev/mcMMO/issues</url>
  19. <system>GitHub</system>
  20. </issueManagement>
  21. <packaging>jar</packaging>
  22. <distributionManagement>
  23. <repository>
  24. <id>neetgames</id>
  25. <url>https://nexus.neetgames.com/repository/maven-releases/</url>
  26. </repository>
  27. <snapshotRepository>
  28. <id>neetgames</id>
  29. <url>https://nexus.neetgames.com/repository/maven-snapshots/</url>
  30. </snapshotRepository>
  31. </distributionManagement>
  32. <build>
  33. <finalName>${project.artifactId}</finalName>
  34. <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
  35. <resources>
  36. <resource>
  37. <targetPath>.</targetPath>
  38. <filtering>true</filtering>
  39. <directory>${basedir}/src/main/resources/</directory>
  40. <includes>
  41. <include>*.yml</include>
  42. <include>.jenkins</include>
  43. </includes>
  44. </resource>
  45. <resource>
  46. <targetPath>com/gmail/nossr50/locale</targetPath>
  47. <filtering>true</filtering>
  48. <directory>${basedir}/src/main/resources/locale/</directory>
  49. <includes>
  50. <include>locale*.properties</include>
  51. </includes>
  52. </resource>
  53. <resource>
  54. <targetPath>mods</targetPath>
  55. <filtering>true</filtering>
  56. <directory>${basedir}/src/main/resources/mods</directory>
  57. <includes>
  58. <include>*.yml</include>
  59. </includes>
  60. </resource>
  61. <resource>
  62. <targetPath>.</targetPath>
  63. <filtering>true</filtering>
  64. <directory>${basedir}</directory>
  65. <includes>
  66. <include>LICENSE</include>
  67. </includes>
  68. </resource>
  69. </resources>
  70. <plugins>
  71. <plugin>
  72. <artifactId>maven-surefire-plugin</artifactId>
  73. <version>2.22.2</version>
  74. </plugin>
  75. <plugin>
  76. <artifactId>maven-failsafe-plugin</artifactId>
  77. <version>2.22.2</version>
  78. </plugin>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-release-plugin</artifactId>
  82. <version>2.5.2</version>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-compiler-plugin</artifactId>
  87. <version>3.8.1</version>
  88. <configuration>
  89. <compilerArgs>
  90. <arg>-parameters</arg> <!-- used for ACF syntax stuff -->
  91. </compilerArgs>
  92. <source>1.8</source>
  93. <target>1.8</target>
  94. <excludes>
  95. </excludes>
  96. </configuration>
  97. </plugin>
  98. <plugin>
  99. <artifactId>maven-assembly-plugin</artifactId>
  100. <configuration>
  101. <descriptors>
  102. <descriptor>src/main/assembly/package.xml</descriptor>
  103. </descriptors>
  104. </configuration>
  105. <executions>
  106. <execution>
  107. <id>build</id>
  108. <phase>package</phase>
  109. <goals>
  110. <goal>single</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-shade-plugin</artifactId>
  118. <version>3.2.3</version>
  119. <configuration>
  120. <artifactSet>
  121. <includes>
  122. <include>commons-logging:commons-logging</include>
  123. <include>org.apache.tomcat:tomcat-jdbc</include>
  124. <include>org.apache.tomcat:tomcat-juli</include>
  125. <include>org.bstats:bstats-base</include>
  126. <include>org.bstats:bstats-bukkit</include>
  127. <include>net.kyori:adventure-api</include>
  128. <include>net.kyori:adventure-text-serializer-gson</include>
  129. <include>net.kyori:adventure-platform-bukkit</include>
  130. <include>net.kyori:adventure-platform-api</include>
  131. <include>net.kyori:adventure-platform-common</include>
  132. <include>net.kyori:adventure-platform-viaversion</include>
  133. <include>net.kyori:adventure-platform-facet</include>
  134. <include>net.kyori:adventure-nbt</include>
  135. <include>net.kyori:adventure-key</include>
  136. <include>net.kyori:examination-api</include>
  137. <include>net.kyori:examination-string</include>
  138. <include>net.kyori:adventure-text-serializer-legacy</include>
  139. <include>net.kyori:adventure-text-serializer-bungeecord</include>
  140. <include>net.kyori:adventure-text-serializer-craftbukkit</include>
  141. <include>net.kyori:adventure-text-serializer-gson-legacy-impl</include>
  142. <include>co.aikar:acf-bukkit</include>
  143. <include>com.neetgames:mcMMO-API</include>
  144. <!-- <include>com.neetgames:jmal</include>-->
  145. <include>com.neetgames:NEET-lib</include>
  146. </includes>
  147. </artifactSet>
  148. <!-- <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>-->
  149. <relocations>
  150. <relocation>
  151. <pattern>net.kyori.examination</pattern>
  152. <shadedPattern>com.gmail.nossr50.kyori.examination</shadedPattern>
  153. </relocation>
  154. <relocation>
  155. <pattern>net.kyori.adventure</pattern>
  156. <shadedPattern>com.gmail.nossr50.mcmmo.kyori.adventure</shadedPattern>
  157. </relocation>
  158. <relocation>
  159. <pattern>com.neetgames.neetlib</pattern>
  160. <shadedPattern>com.gmail.nossr50.neetlib</shadedPattern>
  161. </relocation>
  162. <relocation>
  163. <pattern>co.aikar.commands</pattern>
  164. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  165. </relocation>
  166. <relocation>
  167. <pattern>co.aikar.locales</pattern>
  168. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  169. </relocation>
  170. <relocation>
  171. <pattern>org.apache.commons.logging</pattern>
  172. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  173. </relocation>
  174. <relocation>
  175. <pattern>org.apache.juli</pattern>
  176. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  177. </relocation>
  178. <relocation>
  179. <pattern>org.apache.tomcat</pattern>
  180. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  181. </relocation>
  182. <relocation>
  183. <pattern>org.bstats</pattern>
  184. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstats</shadedPattern>
  185. </relocation>
  186. </relocations>
  187. </configuration>
  188. <executions>
  189. <execution>
  190. <phase>package</phase>
  191. <goals>
  192. <goal>shade</goal>
  193. </goals>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. </plugins>
  198. <extensions>
  199. <extension>
  200. <groupId>org.apache.maven.wagon</groupId>
  201. <artifactId>wagon-file</artifactId>
  202. <version>2.2</version>
  203. </extension>
  204. </extensions>
  205. </build>
  206. <repositories>
  207. <repository>
  208. <id>neet-games</id>
  209. <url>https://nexus.neetgames.com/repository/maven-public/</url>
  210. </repository>
  211. <repository>
  212. <id>spigot-repo</id>
  213. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  214. </repository>
  215. <repository>
  216. <id>CodeMC</id>
  217. <url>https://repo.codemc.org/repository/maven-public</url>
  218. </repository>
  219. <repository>
  220. <id>sk89q-repo</id>
  221. <url>https://maven.sk89q.com/repo/</url>
  222. </repository>
  223. <repository> <!-- for development builds -->
  224. <id>sonatype-oss</id>
  225. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  226. </repository>
  227. <repository>
  228. <id>aikar</id>
  229. <url>https://repo.aikar.co/content/groups/aikar/</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. </repositories>
  236. <!-- <dependencyManagement>-->
  237. <!-- <dependencies>-->
  238. <!-- <dependency>-->
  239. <!-- <groupId>org.junit</groupId>-->
  240. <!-- <artifactId>junit-bom</artifactId>-->
  241. <!-- <version>5.7.1</version>-->
  242. <!-- <type>pom</type>-->
  243. <!-- <scope>import</scope>-->
  244. <!-- </dependency>-->
  245. <!-- </dependencies>-->
  246. <!-- </dependencyManagement>-->
  247. <dependencies>
  248. <dependency>
  249. <groupId>com.neetgames</groupId>
  250. <artifactId>mcMMO-API</artifactId>
  251. <version>0.01.00-SNAPSHOT</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>com.neetgames</groupId>
  255. <artifactId>jmal-core</artifactId>
  256. <version>0.01.00-SNAPSHOT</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>com.neetgames</groupId>
  260. <artifactId>jmal-bukkit</artifactId>
  261. <version>0.01.00-SNAPSHOT</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>com.neetgames</groupId>
  265. <artifactId>NEET-lib</artifactId>
  266. <version>1.0-SNAPSHOT</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>com.github.seeseemelk</groupId>
  270. <artifactId>MockBukkit-v1.16</artifactId>
  271. <version>0.25.0</version>
  272. <scope>test</scope>
  273. </dependency>
  274. <dependency>
  275. <groupId>co.aikar</groupId>
  276. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  277. <version>0.5.0-SNAPSHOT</version> <!-- Replace this as well -->
  278. </dependency>
  279. <!-- adventure-api, adventure-text-serializer-gson, adventure-platform-bukkit-->
  280. <dependency>
  281. <groupId>net.kyori</groupId>
  282. <artifactId>adventure-text-serializer-gson</artifactId>
  283. <version>4.7.0</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>net.kyori</groupId>
  287. <artifactId>adventure-api</artifactId>
  288. <version>4.7.0</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>net.kyori</groupId>
  292. <artifactId>adventure-nbt</artifactId>
  293. <version>4.7.0</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>net.kyori</groupId>
  297. <artifactId>adventure-key</artifactId>
  298. <version>4.7.0</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>net.kyori</groupId>
  302. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  303. <version>4.7.0</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>net.kyori</groupId>
  307. <artifactId>adventure-platform-bukkit</artifactId>
  308. <version>4.0.0-SNAPSHOT</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>net.kyori</groupId>
  312. <artifactId>adventure-platform-api</artifactId>
  313. <version>4.0.0-SNAPSHOT</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>net.kyori</groupId>
  317. <artifactId>adventure-platform-common</artifactId>
  318. <version>4.0.0-SNAPSHOT</version>
  319. <exclusions>
  320. <exclusion>
  321. <groupId>net.kyori</groupId>
  322. <artifactId>adventure-nbt</artifactId>
  323. </exclusion>
  324. </exclusions>
  325. </dependency>
  326. <dependency>
  327. <groupId>org.apache.maven.scm</groupId>
  328. <artifactId>maven-scm-provider-gitexe</artifactId>
  329. <version>1.9.4</version>
  330. </dependency>
  331. <dependency>
  332. <groupId>org.bstats</groupId>
  333. <artifactId>bstats-bukkit</artifactId>
  334. <version>2.2.1</version>
  335. <scope>compile</scope>
  336. </dependency>
  337. <dependency>
  338. <groupId>org.spigotmc</groupId>
  339. <artifactId>spigot-api</artifactId>
  340. <version>1.16.5-R0.1-SNAPSHOT</version>
  341. <scope>provided</scope>
  342. </dependency>
  343. <dependency>
  344. <groupId>com.sk89q.worldguard</groupId>
  345. <artifactId>worldguard-core</artifactId>
  346. <version>7.0.1-SNAPSHOT</version>
  347. <exclusions>
  348. <exclusion>
  349. <!-- We use jetbrains instead. Excluding this -->
  350. <!-- prevents us from using inconsistent annotations -->
  351. <groupId>com.google.code.findbugs</groupId>
  352. <artifactId>jsr305</artifactId>
  353. </exclusion>
  354. </exclusions>
  355. </dependency>
  356. <dependency>
  357. <groupId>com.sk89q.worldguard</groupId>
  358. <artifactId>worldguard-legacy</artifactId>
  359. <version>7.0.0-SNAPSHOT</version>
  360. <exclusions>
  361. <exclusion>
  362. <groupId>org.bukkit</groupId>
  363. <artifactId>bukkit</artifactId>
  364. </exclusion>
  365. </exclusions>
  366. </dependency>
  367. <dependency>
  368. <groupId>org.junit.jupiter</groupId>
  369. <artifactId>junit-jupiter-api</artifactId>
  370. <version>5.7.1</version>
  371. <scope>test</scope>
  372. </dependency>
  373. <dependency>
  374. <groupId>org.junit.jupiter</groupId>
  375. <artifactId>junit-jupiter-engine</artifactId>
  376. <version>5.7.1</version>
  377. <scope>test</scope>
  378. </dependency>
  379. <dependency>
  380. <groupId>org.junit.vintage</groupId>
  381. <artifactId>junit-vintage-engine</artifactId>
  382. <version>5.6.2</version>
  383. <scope>test</scope>
  384. </dependency>
  385. <dependency>
  386. <groupId>org.powermock</groupId>
  387. <artifactId>powermock-module-junit4</artifactId>
  388. <version>2.0.7</version>
  389. <scope>test</scope>
  390. </dependency>
  391. <dependency>
  392. <groupId>org.powermock</groupId>
  393. <artifactId>powermock-api-mockito2</artifactId>
  394. <version>2.0.7</version>
  395. <scope>test</scope>
  396. </dependency>
  397. <dependency>
  398. <groupId>org.mockito</groupId>
  399. <artifactId>mockito-core</artifactId>
  400. <version>3.8.0</version>
  401. <scope>test</scope>
  402. </dependency>
  403. <dependency>
  404. <groupId>org.apache.tomcat</groupId>
  405. <artifactId>tomcat-jdbc</artifactId>
  406. <version>7.0.52</version>
  407. <scope>compile</scope>
  408. </dependency>
  409. <dependency>
  410. <groupId>org.jetbrains</groupId>
  411. <artifactId>annotations</artifactId>
  412. <version>19.0.0</version>
  413. </dependency>
  414. </dependencies>
  415. </project>