pom.xml 14 KB

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