pom.xml 14 KB

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