pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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.190</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. </includes>
  144. </artifactSet>
  145. <!-- <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>-->
  146. <relocations>
  147. <relocation>
  148. <pattern>net.kyori.examination</pattern>
  149. <shadedPattern>com.gmail.nossr50.kyori.examination</shadedPattern>
  150. </relocation>
  151. <relocation>
  152. <pattern>net.kyori.adventure</pattern>
  153. <shadedPattern>com.gmail.nossr50.mcmmo.kyori.adventure</shadedPattern>
  154. </relocation>
  155. <relocation>
  156. <pattern>co.aikar.commands</pattern>
  157. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  158. </relocation>
  159. <relocation>
  160. <pattern>co.aikar.locales</pattern>
  161. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  162. </relocation>
  163. <relocation>
  164. <pattern>org.apache.commons.logging</pattern>
  165. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  166. </relocation>
  167. <relocation>
  168. <pattern>org.apache.juli</pattern>
  169. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  170. </relocation>
  171. <relocation>
  172. <pattern>org.apache.tomcat</pattern>
  173. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  174. </relocation>
  175. <relocation>
  176. <pattern>org.bstats</pattern>
  177. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstats</shadedPattern>
  178. </relocation>
  179. </relocations>
  180. </configuration>
  181. <executions>
  182. <execution>
  183. <phase>package</phase>
  184. <goals>
  185. <goal>shade</goal>
  186. </goals>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. </plugins>
  191. <extensions>
  192. <extension>
  193. <groupId>org.apache.maven.wagon</groupId>
  194. <artifactId>wagon-file</artifactId>
  195. <version>2.2</version>
  196. </extension>
  197. </extensions>
  198. </build>
  199. <repositories>
  200. <repository>
  201. <id>spigot-repo</id>
  202. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  203. </repository>
  204. <repository>
  205. <id>CodeMC</id>
  206. <url>https://repo.codemc.org/repository/maven-public</url>
  207. </repository>
  208. <repository>
  209. <id>sk89q-repo</id>
  210. <url>https://maven.sk89q.com/repo/</url>
  211. </repository>
  212. <repository>
  213. <id>aikar</id>
  214. <url>https://repo.aikar.co/content/groups/aikar/</url>
  215. </repository>
  216. <!-- ... -->
  217. <repository> <!-- for development builds -->
  218. <id>sonatype-oss</id>
  219. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  220. </repository>
  221. <!-- ... -->
  222. </repositories>
  223. <!-- <dependencyManagement>-->
  224. <!-- <dependencies>-->
  225. <!-- <dependency>-->
  226. <!-- <groupId>org.junit</groupId>-->
  227. <!-- <artifactId>junit-bom</artifactId>-->
  228. <!-- <version>5.7.1</version>-->
  229. <!-- <type>pom</type>-->
  230. <!-- <scope>import</scope>-->
  231. <!-- </dependency>-->
  232. <!-- </dependencies>-->
  233. <!-- </dependencyManagement>-->
  234. <dependencies>
  235. <dependency>
  236. <groupId>com.github.seeseemelk</groupId>
  237. <artifactId>MockBukkit-v1.16</artifactId>
  238. <version>0.25.0</version>
  239. <scope>test</scope>
  240. </dependency>
  241. <dependency>
  242. <groupId>co.aikar</groupId>
  243. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  244. <version>0.5.0-SNAPSHOT</version> <!-- Replace this as well -->
  245. </dependency>
  246. <!-- adventure-api, adventure-text-serializer-gson, adventure-platform-bukkit-->
  247. <dependency>
  248. <groupId>net.kyori</groupId>
  249. <artifactId>adventure-text-serializer-gson</artifactId>
  250. <version>4.7.0</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>net.kyori</groupId>
  254. <artifactId>adventure-api</artifactId>
  255. <version>4.7.0</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>net.kyori</groupId>
  259. <artifactId>adventure-nbt</artifactId>
  260. <version>4.7.0</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>net.kyori</groupId>
  264. <artifactId>adventure-key</artifactId>
  265. <version>4.7.0</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>net.kyori</groupId>
  269. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  270. <version>4.7.0</version>
  271. </dependency>
  272. <dependency>
  273. <groupId>net.kyori</groupId>
  274. <artifactId>adventure-platform-bukkit</artifactId>
  275. <version>4.0.0-SNAPSHOT</version>
  276. </dependency>
  277. <dependency>
  278. <groupId>net.kyori</groupId>
  279. <artifactId>adventure-platform-api</artifactId>
  280. <version>4.0.0-SNAPSHOT</version>
  281. </dependency>
  282. <dependency>
  283. <groupId>net.kyori</groupId>
  284. <artifactId>adventure-platform-common</artifactId>
  285. <version>4.0.0-SNAPSHOT</version>
  286. <exclusions>
  287. <exclusion>
  288. <groupId>net.kyori</groupId>
  289. <artifactId>adventure-nbt</artifactId>
  290. </exclusion>
  291. </exclusions>
  292. </dependency>
  293. <dependency>
  294. <groupId>org.apache.maven.scm</groupId>
  295. <artifactId>maven-scm-provider-gitexe</artifactId>
  296. <version>1.9.4</version>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.bstats</groupId>
  300. <artifactId>bstats-bukkit</artifactId>
  301. <version>2.2.1</version>
  302. <scope>compile</scope>
  303. </dependency>
  304. <dependency>
  305. <groupId>org.spigotmc</groupId>
  306. <artifactId>spigot-api</artifactId>
  307. <version>1.16.5-R0.1-SNAPSHOT</version>
  308. <scope>provided</scope>
  309. </dependency>
  310. <dependency>
  311. <groupId>com.sk89q.worldguard</groupId>
  312. <artifactId>worldguard-core</artifactId>
  313. <version>7.0.1-SNAPSHOT</version>
  314. <exclusions>
  315. <exclusion>
  316. <!-- We use jetbrains instead. Excluding this -->
  317. <!-- prevents us from using inconsistent annotations -->
  318. <groupId>com.google.code.findbugs</groupId>
  319. <artifactId>jsr305</artifactId>
  320. </exclusion>
  321. </exclusions>
  322. </dependency>
  323. <dependency>
  324. <groupId>com.sk89q.worldguard</groupId>
  325. <artifactId>worldguard-legacy</artifactId>
  326. <version>7.0.0-SNAPSHOT</version>
  327. <exclusions>
  328. <exclusion>
  329. <groupId>org.bukkit</groupId>
  330. <artifactId>bukkit</artifactId>
  331. </exclusion>
  332. </exclusions>
  333. </dependency>
  334. <dependency>
  335. <groupId>org.junit.jupiter</groupId>
  336. <artifactId>junit-jupiter-api</artifactId>
  337. <version>5.7.1</version>
  338. <scope>test</scope>
  339. </dependency>
  340. <dependency>
  341. <groupId>org.junit.jupiter</groupId>
  342. <artifactId>junit-jupiter-engine</artifactId>
  343. <version>5.7.1</version>
  344. <scope>test</scope>
  345. </dependency>
  346. <dependency>
  347. <groupId>org.junit.vintage</groupId>
  348. <artifactId>junit-vintage-engine</artifactId>
  349. <version>5.6.2</version>
  350. <scope>test</scope>
  351. </dependency>
  352. <dependency>
  353. <groupId>org.powermock</groupId>
  354. <artifactId>powermock-module-junit4</artifactId>
  355. <version>2.0.7</version>
  356. <scope>test</scope>
  357. </dependency>
  358. <dependency>
  359. <groupId>org.powermock</groupId>
  360. <artifactId>powermock-api-mockito2</artifactId>
  361. <version>2.0.7</version>
  362. <scope>test</scope>
  363. </dependency>
  364. <dependency>
  365. <groupId>org.mockito</groupId>
  366. <artifactId>mockito-core</artifactId>
  367. <version>3.8.0</version>
  368. <scope>test</scope>
  369. </dependency>
  370. <dependency>
  371. <groupId>org.apache.tomcat</groupId>
  372. <artifactId>tomcat-jdbc</artifactId>
  373. <version>7.0.52</version>
  374. <scope>compile</scope>
  375. </dependency>
  376. <dependency>
  377. <groupId>org.jetbrains</groupId>
  378. <artifactId>annotations</artifactId>
  379. <version>19.0.0</version>
  380. </dependency>
  381. </dependencies>
  382. </project>