Advertisement
broken-arrow

Untitled

Oct 11th, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <groupId>org.cheststorage</groupId>
  8. <artifactId>broken</artifactId>
  9. <name>Cheststorage</name>
  10. <version>0.0.10</version>
  11.  
  12.  
  13. <!-- ############################################################################### -->
  14.  
  15. <!--
  16. Configure some of the Maven settings. We also define
  17. our new variables here such as the main class or Java version
  18. for our plugin.
  19.  
  20. You can use those variables in your src/resources folder. See
  21. plugin.yml folder there for example usage.
  22. -->
  23. <properties>
  24.  
  25. <!-- The full path to your plugin's main class, so that Spigot can find and load it -->
  26. <main.class>org.broken.cheststorage.ChestStorage</main.class>
  27.  
  28. <!-- The Foundation version - change to latest version from https://github.com/kangarko/Foundation/releases -->
  29. <foundation.version>5.11.1</foundation.version>
  30.  
  31. <!-- The Java version your plugin uses, see bstats.org for what most servers have and use that -->
  32. <java.version>11</java.version>
  33.  
  34. <!-- How letters in your code should be saved on your disk, leave to UTF-8 to support all languages -->
  35. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  36. </properties>
  37.  
  38. <!--
  39. Configure where should Maven look for other libraries and plugins we
  40. want to use in our plugin. Those libraries and plugins can you then
  41. reference below in the dependencies section.
  42.  
  43. Each repository has two parts - the id and url. The id does not
  44. really matter, however the URL must contain a valid Maven repository
  45. where the dependency is "installed" (that's why we call the goal "install"
  46. because we want to install our plugin on our PC as well so that we can
  47. use it in our other plugins together without linking it as a dependency)
  48.  
  49. By default we use the Spigot repository for Spigot and the central Maven
  50. repo for many other plugins.
  51. -->
  52. <repositories>
  53. <repository>
  54. <id>papermc</id>
  55. <url>https://papermc.io/repo/repository/maven-public/</url>
  56. </repository>
  57. <repository>
  58. <id>spigotmc-repo</id>
  59. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  60. </repository>
  61. <repository>
  62. <id>jitpack.io</id>
  63. <url>https://jitpack.io</url>
  64. </repository>
  65. <repository>
  66. <id>sonatype</id>
  67. <url>https://oss.sonatype.org/content/groups/public/</url>
  68. </repository>
  69. <repository> <!-- for development builds -->
  70. <id>sonatype-oss-snapshots</id>
  71. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  72. </repository>
  73.  
  74. <repository>
  75. <id>bg-repo</id>
  76. <url>https://repo.bg-software.com/repository/api/</url>
  77. </repository>
  78.  
  79. <repository>
  80. <id>PluginsJarUseForAPI</id>
  81. <url>file:///F:\PluginsJarUseForAPI</url>
  82. </repository>
  83. <repository>
  84. <id>jeff-media-repo</id>
  85. <url>https://repo.jeff-media.de/maven2</url>
  86. </repository>
  87. </repositories>
  88.  
  89. <!--
  90. Configure what other libraries or plugins are we going to use in this plugin.
  91.  
  92. As a starting point, we are importing the Spigot API and Foundation.
  93. -->
  94. <dependencies>
  95.  
  96. <!--
  97. Import the Spigot API since it's necessary for our plugin
  98.  
  99. Make sure you change the version to the latest version you want to use for your plugin.
  100. <groupId>org.spigotmc</groupId>
  101. <artifactId>spigot-api</artifactId>
  102. -->
  103. <dependency>
  104. <groupId>org.spigotmc</groupId>
  105. <artifactId>spigot-api</artifactId>
  106.  
  107. <!-- Change this to the latest version to stay up to date
  108. <version>1.16.5-R0.1-SNAPSHOT</version>
  109. -->
  110. <version>1.16.5-R0.1-SNAPSHOT</version>
  111.  
  112. <!--
  113. The scope indicates if this library should be packaged together with our plugin
  114. when we want to publish it.
  115.  
  116. Set this to "compile" if you want all classes from this library to be copied
  117. to your plugin's jar, otherwise set this to "provided".
  118. <scope>provided</scope>
  119. -->
  120. <scope>provided</scope>
  121. </dependency>
  122.  
  123. <!--
  124. Import the Foundation library to kickstart our plugin development
  125. -->
  126. <dependency>
  127. <groupId>com.github.kangarko</groupId>
  128. <artifactId>Foundation</artifactId>
  129. <version>${foundation.version}</version>
  130. <!-- Include Foundation and its dependencies. There are exceptions, see shade plugin below -->
  131. <scope>compile</scope>
  132. </dependency>
  133.  
  134. <dependency>
  135. <groupId>com.github.pop4959</groupId>
  136. <artifactId>LWCX</artifactId>
  137. <version>master-ad0f824361-1</version>
  138. <scope>provided</scope>
  139. </dependency>
  140.  
  141. <dependency>
  142. <groupId>org.spigotmc</groupId>
  143. <artifactId>minecraft-server</artifactId>
  144. <version>1.16.4-SNAPSHOT</version>
  145. <scope>provided</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>net.kyori</groupId>
  149. <artifactId>adventure-api</artifactId>
  150. <version>4.8.1</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>jetsHopper</groupId>
  154. <artifactId>jetsHopper</artifactId>
  155. <scope>system</scope>
  156. <systemPath>F:/PluginsJarUseForAPI/JetsHoppers-3.2.12.jar</systemPath>
  157. <version>3.3.1</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>net.kyori</groupId>
  161. <artifactId>adventure-platform-bukkit</artifactId>
  162. <version>4.0.0-SNAPSHOT</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>com.bgsoftware</groupId>
  166. <artifactId>WildStackerAPI</artifactId>
  167. <version>latest</version>
  168. <scope>provided</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.bgsoftware</groupId>
  172. <artifactId>WildChestsAPI</artifactId>
  173. <version>latest</version>
  174. <scope>provided</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>de.jeff_media</groupId>
  178. <artifactId>ChestSortAPI</artifactId>
  179. <version>11.0.0-SNAPSHOT</version>
  180. <scope>provided</scope>
  181. </dependency>
  182. <dependency>
  183. <groupId>net.kyori</groupId>
  184. <artifactId>adventure-text-minimessage</artifactId>
  185. <version>4.1.0-SNAPSHOT</version>
  186. <scope>compile</scope>
  187. </dependency>
  188. </dependencies>
  189. <!--
  190. Configure what happens when we are building this project (Maven compiles our code into bytecode
  191. for us automatically).
  192. -->
  193. <build>
  194.  
  195. <!--
  196. When we are building your plugins, what plugins should we use during this process?
  197.  
  198. The plugins here extend the functionality of Maven, just like your plugin enhances Minecraft
  199. These are not Minecraft plugins, but only Maven plugins!
  200. -->
  201. <plugins>
  202.  
  203. <!--
  204. The first and the most essential plugin is the compiler, that translates your
  205. human readable code into bytecode.
  206. -->
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-compiler-plugin</artifactId>
  210. <!--
  211. You want to check and update the latest version periodically from
  212. https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin
  213. -->
  214. <version>3.8.1</version>
  215. <configuration>
  216. <source>${java.version}</source>
  217. <target>${java.version}</target>
  218. </configuration>
  219. </plugin>
  220.  
  221. <!--
  222. The second plugin is the shade plugin, packaging every library with
  223. the "compile" scope (see dependencies)
  224. -->
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-shade-plugin</artifactId>
  228. <!--
  229. You want to check and update the latest version periodically from
  230. https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin
  231. -->
  232. <version>3.2.2</version>
  233. <executions>
  234. <execution>
  235. <phase>package</phase>
  236. <goals>
  237. <goal>shade</goal>
  238. </goals>
  239. <!--
  240. By default we configure the Foundation to include itself and all classes when
  241. we set the scope to compile (see above).
  242.  
  243. There are many libraries from Foundation we will not need to use, and here
  244. can you specify which ones to exclude. Please leave the default ones as they are.
  245. -->
  246. <configuration>
  247. <createDependencyReducedPom>false</createDependencyReducedPom>
  248. <finalName>${project.name}-${project.version}</finalName>
  249. <artifactSet>
  250. <includes>
  251. <include>org.mineacademy:Game*</include>
  252. <include>com.github.kangarko:Foundation*</include>
  253. <include>net.kyori:adventure-platform-bukkit*</include>
  254. <include>net.kyori:adventure-platform-api*</include>
  255. <include>net.kyori:adventure-api*</include>
  256. <include>net.kyori:adventure-platform-facet*</include>
  257. <include>net.kyori:adventure-text-serializer-craftbukkit*</include>
  258. <include>net.kyori:adventure-text-minimessage*</include>
  259. <include>net.kyori:*</include>
  260. </includes>
  261. <excludes>
  262. <exclude>org.mineacademy:GameAPI*</exclude>
  263. </excludes>
  264. </artifactSet>
  265. <relocations>
  266. <!-- <relocation>
  267. <pattern>net.kyori.adventure</pattern>
  268. <shadedPattern>${project.groupId}.${project.artifactId}.adventure</shadedPattern>
  269. </relocation>-->
  270. <relocation>
  271. <pattern>net.kyori</pattern>
  272. <shadedPattern>${project.groupId}.${project.artifactId}.minimsg</shadedPattern>
  273. </relocation>
  274. <relocation>
  275. <pattern>org.mineacademy</pattern>
  276. <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  277. <excludes>
  278. <exclude>org.mineacademy.${project.artifactId}.*</exclude>
  279. <exclude>org.mineacademy.gameapi.*</exclude>
  280. <exclude>org.mineacademy.boss.*</exclude>
  281. <exclude>org.mineacademy.worldeditbridge.*</exclude>
  282. </excludes>
  283. </relocation>
  284. </relocations>
  285. </configuration>
  286. </execution>
  287. </executions>
  288. </plugin>
  289. </plugins>
  290.  
  291. <!--
  292. During the build, we are going to scan all files in src/main/resources
  293. folder such as plugin.yml and your settings files and replace all variables
  294. such as ${main.class} with their proper values.
  295.  
  296. You can use native variables such as ${project.X} or the ones you defined above
  297. in the properties section.
  298. -->
  299. <resources>
  300. <resource>
  301. <directory>src/main/resources</directory>
  302. <filtering>true</filtering>
  303. </resource>
  304. </resources>
  305. </build>
  306. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement