MCMaricopaAZ

20200702_POM_File_001

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