pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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.172-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:examination-api</include>
  114. <include>net.kyori:examination-string</include>
  115. <include>net.kyori:adventure-text-serializer-legacy</include>
  116. <include>net.kyori:adventure-text-serializer-bungeecord</include>
  117. <include>net.kyori:adventure-text-serializer-craftbukkit</include>
  118. <include>net.kyori:adventure-text-serializer-gson-legacy-impl</include>
  119. <include>co.aikar:acf-bukkit</include>
  120. </includes>
  121. </artifactSet>
  122. <!-- <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>-->
  123. <relocations>
  124. <relocation>
  125. <pattern>net.kyori.examination</pattern>
  126. <shadedPattern>com.gmail.nossr50.kyori.examination</shadedPattern>
  127. </relocation>
  128. <relocation>
  129. <pattern>net.kyori.adventure</pattern>
  130. <shadedPattern>com.gmail.nossr50.mcmmo.kyori.adventure</shadedPattern>
  131. </relocation>
  132. <relocation>
  133. <pattern>co.aikar.commands</pattern>
  134. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  135. </relocation>
  136. <relocation>
  137. <pattern>co.aikar.locales</pattern>
  138. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  139. </relocation>
  140. <relocation>
  141. <pattern>org.apache.commons.logging</pattern>
  142. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  143. </relocation>
  144. <relocation>
  145. <pattern>org.apache.juli</pattern>
  146. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  147. </relocation>
  148. <relocation>
  149. <pattern>org.apache.tomcat</pattern>
  150. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  151. </relocation>
  152. <relocation>
  153. <pattern>org.bstats</pattern>
  154. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstat</shadedPattern>
  155. </relocation>
  156. </relocations>
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <phase>package</phase>
  161. <goals>
  162. <goal>shade</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. </plugins>
  168. <extensions>
  169. <extension>
  170. <groupId>org.apache.maven.wagon</groupId>
  171. <artifactId>wagon-file</artifactId>
  172. <version>2.2</version>
  173. </extension>
  174. </extensions>
  175. </build>
  176. <repositories>
  177. <repository>
  178. <id>spigot-repo</id>
  179. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  180. </repository>
  181. <repository>
  182. <id>CodeMC</id>
  183. <url>https://repo.codemc.org/repository/maven-public</url>
  184. </repository>
  185. <repository>
  186. <id>sk89q-repo</id>
  187. <url>https://maven.sk89q.com/repo/</url>
  188. </repository>
  189. <repository>
  190. <id>aikar</id>
  191. <url>https://repo.aikar.co/content/groups/aikar/</url>
  192. </repository>
  193. <!-- ... -->
  194. <repository> <!-- for development builds -->
  195. <id>sonatype-oss</id>
  196. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  197. </repository>
  198. <!-- ... -->
  199. </repositories>
  200. <dependencies>
  201. <dependency>
  202. <groupId>co.aikar</groupId>
  203. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  204. <version>0.5.0-SNAPSHOT</version> <!-- Replace this as well -->
  205. </dependency>
  206. <!-- adventure-api, adventure-text-serializer-gson, adventure-platform-bukkit-->
  207. <dependency>
  208. <groupId>net.kyori</groupId>
  209. <artifactId>adventure-text-serializer-gson</artifactId>
  210. <version>4.3.0</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>net.kyori</groupId>
  214. <artifactId>adventure-api</artifactId>
  215. <version>4.3.0</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>net.kyori</groupId>
  219. <artifactId>adventure-nbt</artifactId>
  220. <version>4.3.0</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>net.kyori</groupId>
  224. <artifactId>adventure-platform-bukkit</artifactId>
  225. <version>4.0.0-SNAPSHOT</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>net.kyori</groupId>
  229. <artifactId>adventure-platform-api</artifactId>
  230. <version>4.0.0-SNAPSHOT</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>net.kyori</groupId>
  234. <artifactId>adventure-platform-common</artifactId>
  235. <version>4.0.0-SNAPSHOT</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>net.kyori</groupId>
  239. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  240. <version>4.3.0</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.apache.maven.scm</groupId>
  244. <artifactId>maven-scm-provider-gitexe</artifactId>
  245. <version>1.9.4</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.bstats</groupId>
  249. <artifactId>bstats-bukkit</artifactId>
  250. <version>1.4</version>
  251. <scope>compile</scope>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.spigotmc</groupId>
  255. <artifactId>spigot-api</artifactId>
  256. <version>1.16.4-R0.1-SNAPSHOT</version>
  257. <scope>provided</scope>
  258. </dependency>
  259. <dependency>
  260. <groupId>com.sk89q.worldguard</groupId>
  261. <artifactId>worldguard-core</artifactId>
  262. <version>7.0.1-SNAPSHOT</version>
  263. <exclusions>
  264. <exclusion>
  265. <!-- We use jetbrains instead. Excluding this -->
  266. <!-- prevents us from using inconsistent annotations -->
  267. <groupId>com.google.code.findbugs</groupId>
  268. <artifactId>jsr305</artifactId>
  269. </exclusion>
  270. </exclusions>
  271. </dependency>
  272. <dependency>
  273. <groupId>com.sk89q.worldguard</groupId>
  274. <artifactId>worldguard-legacy</artifactId>
  275. <version>7.0.0-SNAPSHOT</version>
  276. <exclusions>
  277. <exclusion>
  278. <groupId>org.bukkit</groupId>
  279. <artifactId>bukkit</artifactId>
  280. </exclusion>
  281. </exclusions>
  282. </dependency>
  283. <dependency>
  284. <groupId>junit</groupId>
  285. <artifactId>junit-dep</artifactId>
  286. <version>4.11</version>
  287. <scope>test</scope>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.powermock</groupId>
  291. <artifactId>powermock-module-junit4</artifactId>
  292. <version>2.0.7</version>
  293. <scope>test</scope>
  294. </dependency>
  295. <dependency>
  296. <groupId>org.powermock</groupId>
  297. <artifactId>powermock-api-mockito2</artifactId>
  298. <version>2.0.7</version>
  299. <scope>test</scope>
  300. </dependency>
  301. <dependency>
  302. <groupId>org.mockito</groupId>
  303. <artifactId>mockito-core</artifactId>
  304. <version>3.4.6</version>
  305. <scope>test</scope>
  306. </dependency>
  307. <dependency>
  308. <groupId>org.apache.tomcat</groupId>
  309. <artifactId>tomcat-jdbc</artifactId>
  310. <version>7.0.52</version>
  311. <scope>compile</scope>
  312. </dependency>
  313. <dependency>
  314. <groupId>org.jetbrains</groupId>
  315. <artifactId>annotations</artifactId>
  316. <version>19.0.0</version>
  317. </dependency>
  318. </dependencies>
  319. <properties>
  320. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  321. </properties>
  322. </project>