Advertisement
JackOUT

Untitled

Jan 24th, 2022
1,461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.75 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>games.coob</groupId>
  8.     <artifactId>skywars</artifactId>
  9.     <name>SkyWars</name>
  10.     <version>1.0.0</version>
  11.  
  12.     <!-- DO NOT EDIT. -->
  13.     <packaging>jar</packaging>
  14.  
  15.     <!-- ############################################################################### -->
  16.  
  17.     <!--
  18.       Configure some of the Maven settings. We also define
  19.       our new variables here such as the main class or Java version
  20.       for our plugin.
  21.  
  22.       You can use those variables in your src/resources folder. See
  23.       plugin.yml folder there for example usage.
  24.   -->
  25.     <properties>
  26.  
  27.         <!-- Change to your name or the main collaborator. -->
  28.         <author>Coob</author>
  29.  
  30.         <!-- The full path to your plugin's main class, so that Spigot can find and load it -->
  31.         <main.class>games.coob.skywars.SkyWarsPlugin</main.class>
  32.  
  33.         <!-- The Java version your plugin uses, see bstats.org for what most servers have and use that -->
  34.         <java.version>16</java.version>
  35.  
  36.         <!-- Change to the latest one from https://github.com/kangarko/Foundation/releases
  37.           or change to "LATEST" if you downloaded Foundation to your disk. -->
  38.         <foundation.version>5.12.3</foundation.version>
  39.  
  40.         <!-- Leave on "com.github.kangarko" if you use Foundation from GitHub like most people,
  41.             or change to "org.mineacademy" if you downloaded our library to your disk. -->
  42.         <foundation.path>com.github.kangarko</foundation.path>
  43.  
  44.         <!-- DO NOT EDIT. -->
  45.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46.     </properties>
  47.  
  48.     <repositories>
  49.         <!-- DO NOT EDIT, used to pull Foundation from the JitPack site. -->
  50.         <repository>
  51.             <id>jitpack.io</id>
  52.             <url>https://jitpack.io</url>
  53.         </repository>
  54.     </repositories>
  55.  
  56.     <!-- UNCOMMENT ONLY IF YOUR java.version IS SET TO JAVA 16 OR HIGHER. -->
  57.     <pluginRepositories>
  58.         <pluginRepository>
  59.             <id>maven-snapshots</id>
  60.             <url>https://repository.apache.org/content/repositories/snapshots/</url>
  61.         </pluginRepository>
  62.     </pluginRepositories>
  63.  
  64.     <dependencies>
  65.  
  66.         <!--
  67.           Import the Spigot API since it's necessary for our plugin
  68.  
  69.           Make sure you change the version to the latest version you want to use for your plugin.
  70.       -->
  71.         <dependency>
  72.             <groupId>org.spigotmc</groupId>
  73.             <artifactId>spigot-api</artifactId>
  74.  
  75.             <!-- Change this to the latest version to stay up to date -->
  76.             <version>1.17.1-R0.1-SNAPSHOT</version>
  77.  
  78.             <!--
  79.               The scope indicates if this library should be packaged together with our plugin
  80.               when we want to publish it.
  81.  
  82.               Set this to "compile" if you want all classes from this library to be copied
  83.               to your plugin's jar, otherwise set this to "provided".
  84.           -->
  85.             <scope>provided</scope>
  86.         </dependency>
  87.  
  88.         <!--
  89.           Import the Foundation library to kickstart our plugin development
  90.       -->
  91.         <dependency>
  92.             <groupId>com.github.kangarko</groupId>
  93.             <artifactId>Foundation</artifactId>
  94.             <version>${foundation.version}</version>
  95.             <!-- Include Foundation and its dependencies. There are exceptions, see shade plugin below -->
  96.             <scope>compile</scope>
  97.         </dependency>
  98.  
  99.         <!--
  100.   Import the LuckPerms API to manage our permissions
  101. -->
  102.         <dependency>
  103.             <groupId>net.luckperms</groupId>
  104.             <artifactId>api</artifactId>
  105.             <version>5.3</version>
  106.             <scope>provided</scope>
  107.         </dependency>
  108.  
  109.         <dependency>
  110.             <groupId>commons-io</groupId>
  111.             <artifactId>commons-io</artifactId>
  112.             <version>2.11.0</version>
  113.         </dependency>
  114.     </dependencies>
  115.  
  116.     <!-- DO NOT EDIT unless instructed to do so or you know what you're doing. -->
  117.     <build>
  118.         <finalName>${project.name}-${project.version}</finalName>
  119.         <plugins>
  120.             <plugin>
  121.                 <groupId>org.apache.maven.plugins</groupId>
  122.                 <artifactId>maven-jar-plugin</artifactId>
  123.  
  124.                 <!-- Change version to the latest one from
  125.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
  126.                 <version>3.2.2</version>
  127.             </plugin>
  128.             <plugin>
  129.                 <groupId>org.apache.maven.plugins</groupId>
  130.                 <artifactId>maven-compiler-plugin</artifactId>
  131.  
  132.                 <!-- Change version to the latest one from
  133.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  134.                 <version>3.8.1</version>
  135.                 <configuration>
  136.                     <source>${java.version}</source>
  137.                     <target>${java.version}</target>
  138.                 </configuration>
  139.             </plugin>
  140.             <plugin>
  141.                 <groupId>org.apache.maven.plugins</groupId>
  142.                 <artifactId>maven-shade-plugin</artifactId>
  143.  
  144.                 <!-- Change version to the latest one from
  145.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin
  146.  
  147.                     IF YOU USE JAVA 16 THEN PLACE 3.3.0-SNAPSHOT TO THE VERSION AND MAKE SURE TO
  148.                     UNCOMMENT <pluginRepositories> above.
  149.                     -->
  150.                 <version>3.3.0-SNAPSHOT</version>
  151.                 <executions>
  152.                     <execution>
  153.                         <phase>package</phase>
  154.                         <goals>
  155.                             <goal>shade</goal>
  156.                         </goals>
  157.                         <!--
  158.                            By default we configure the Foundation to include itself and all classes when
  159.                            we set the scope to compile (see above).
  160.  
  161.                            There are many libraries from Foundation we will not need to use, and here
  162.                            can you specify which ones to exclude. Please leave the default ones as they are.
  163.                       -->
  164.                         <configuration>
  165.                             <createDependencyReducedPom>false</createDependencyReducedPom>
  166.                             <finalName>${project.name}-${project.version}</finalName>
  167.                             <artifactSet>
  168.                                 <includes>
  169.                                     <include>org.mineacademy:Game*</include>
  170.                                     <include>com.github.kangarko:Foundation*</include>
  171.                                 </includes>
  172.                                 <excludes>
  173.                                     <exclude>org.mineacademy:GameAPI*</exclude>
  174.                                 </excludes>
  175.                             </artifactSet>
  176.                             <relocations>
  177.                                 <relocation>
  178.                                     <pattern>org.mineacademy</pattern>
  179.                                     <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  180.                                     <excludes>
  181.                                         <exclude>org.mineacademy.${project.artifactId}.*</exclude>
  182.                                         <exclude>org.mineacademy.gameapi.*</exclude>
  183.                                         <exclude>org.mineacademy.boss.*</exclude>
  184.                                         <exclude>org.mineacademy.worldeditbridge.*</exclude>
  185.                                     </excludes>
  186.                                 </relocation>
  187.                             </relocations>
  188.                         </configuration>
  189.                     </execution>
  190.                 </executions>
  191.             </plugin>
  192.         </plugins>
  193.  
  194.         <!--
  195.           During the build, we are going to scan all files in src/main/resources
  196.           folder such as plugin.yml and your settings files and replace all variables
  197.           such as ${main.class} with their proper values.
  198.  
  199.           You can use native variables such as ${project.X} or the ones you defined above
  200.           in the properties section.
  201.       -->
  202.         <resources>
  203.             <resource>
  204.                 <directory>src/main/resources</directory>
  205.                 <filtering>true</filtering>
  206.             </resource>
  207.         </resources>
  208.     </build>
  209.  
  210. </project>
  211.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement