JackOUT

Untitled

Oct 26th, 2021 (edited)
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.78 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4.     <modelVersion>4.0.0</modelVersion>
  5.  
  6.     <!-- Change groupId to your own main package name -->
  7.     <groupId>games.coob</groupId>
  8.  
  9.     <!-- Change artifactId to your plugin name, lower cased. Do NOT use spaces. -->
  10.     <artifactId>core</artifactId>
  11.  
  12.     <!-- Change name to your plugin's name. Do NOT use spaces. -->
  13.     <name>Core</name>
  14.  
  15.     <!-- Change version to the appropriate plugin's versions. -->
  16.     <version>1.0.0</version>
  17.  
  18.     <!-- DO NOT EDIT -->
  19.     <packaging>jar</packaging>
  20.  
  21.     <properties>
  22.  
  23.         <!-- Change author to your name or the main collaborator. -->
  24.         <author>jackout</author>
  25.  
  26.         <!-- Change main.class to the full path where the class extending SimplePlugin is located -->
  27.         <main.class>games.coob.core.CorePlugin</main.class>
  28.  
  29.         <!-- Change java.version to the Java version used when compiling.
  30.             If you use 1.8 then your plugin will work on newer versions,
  31.             but if you use "11" or "16" then it will not load on servers
  32.             with previous Java version. We recommend you stick with 1.8. -->
  33.         <java.version>16</java.version>
  34.  
  35.         <!-- Change foundation.version to the latest one from
  36.             https://github.com/kangarko/Foundation/releases -->
  37.         <foundation.version>5.11.2</foundation.version>
  38.  
  39.         <!-- DO NOT EDIT -->
  40.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  41.     </properties>
  42.  
  43.     <repositories>
  44.         <!-- DO NOT EDIT, used to pull Foundation from the JitPack site -->
  45.         <repository>
  46.             <id>jitpack.io</id>
  47.             <url>https://jitpack.io</url>
  48.         </repository>
  49.         <repository>
  50.             <id>Maven Central</id>
  51.             <url>https://repo1.maven.org/maven2/</url>
  52.         </repository>
  53.     </repositories>
  54.  
  55.     <dependencies>
  56.  
  57.         <!-- Use our Foundation library -->
  58.         <dependency>
  59.  
  60.             <!-- IF you have Foundation on your disk, change groupId to org.mineacademy,
  61.                 if you pull Foundation from the Internet use com.github.kangarko
  62.  
  63.                 *WARNING* If you have Foundation on your disk, you also need to edit the
  64.                 <include>com.github.kangarko:Foundation*</include> line, see below! -->
  65.             <groupId>com.github.kangarko</groupId>
  66.  
  67.             <artifactId>Foundation</artifactId>
  68.             <version>${foundation.version}</version>
  69.         </dependency>
  70.  
  71.         <dependency>
  72.             <groupId>com.elmakers.mine.bukkit</groupId>
  73.             <artifactId>EffectLib</artifactId>
  74.             <version>9.0</version>
  75.             <scope>compile</scope>
  76.         </dependency>
  77.  
  78.         <!-- (Optional) Access the server jar for NMS (groupId, artifactId and version do not matter and you
  79. can only use it for your own organization purposes)
  80.  
  81. Make sure the server is on the top because the IDE will prioritize its methods
  82. over the latest Spigot API from Foundation in case you're developing for another MC version
  83.  
  84. NB: Edit the <systemPath> to point out to your patched server file on your disk. -->
  85.         <dependency>
  86.             <groupId>paper-server</groupId>
  87.             <artifactId>Paper-1.16</artifactId>
  88.             <version>1</version>
  89.             <scope>system</scope>
  90.             <systemPath>C:\Users\Megaport\OneDrive\Desktop\1.16 Server\cache\patched_1.16.5.jar</systemPath>
  91.         </dependency>
  92.  
  93.         <dependency>
  94.             <groupId>paper-server</groupId>
  95.             <artifactId>Paper-1.17</artifactId>
  96.             <version>1</version>
  97.             <scope>system</scope>
  98.             <systemPath>C:\Users\Megaport\OneDrive\Desktop\1.17 Server\cache\patched_1.17.1.jar</systemPath>
  99.         </dependency>
  100.     </dependencies>
  101.  
  102.     <!-- DO NOT EDIT unless instructed to do so or you know what you're doing -->
  103.     <build>
  104.         <finalName>${project.name}-${project.version}</finalName>
  105.         <plugins>
  106.             <plugin>
  107.                 <groupId>org.apache.maven.plugins</groupId>
  108.                 <artifactId>maven-jar-plugin</artifactId>
  109.  
  110.                 <!-- Change version to the latest one from
  111.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
  112.                 <version>3.2.0</version>
  113.             </plugin>
  114.             <plugin>
  115.                 <groupId>org.apache.maven.plugins</groupId>
  116.                 <artifactId>maven-compiler-plugin</artifactId>
  117.  
  118.                 <!-- Change version to the latest one from
  119.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  120.                 <version>3.8.1</version>
  121.                 <configuration>
  122.                     <source>${java.version}</source>
  123.                     <target>${java.version}</target>
  124.                 </configuration>
  125.             </plugin>
  126.             <plugin>
  127.                 <groupId>org.apache.maven.plugins</groupId>
  128.                 <artifactId>maven-shade-plugin</artifactId>
  129.  
  130.                 <!-- Change version to the latest one from
  131.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin -->
  132.                 <version>3.2.4</version>
  133.                 <executions>
  134.                     <execution>
  135.                         <phase>package</phase>
  136.                         <goals>
  137.                             <goal>shade</goal>
  138.                         </goals>
  139.                     </execution>
  140.                 </executions>
  141.                 <configuration>
  142.                     <createDependencyReducedPom>false</createDependencyReducedPom>
  143.                     <artifactSet>
  144.                         <includes>
  145.  
  146.                             <!-- IF you have Foundation on your disk, change include to org.mineacademy,
  147.                                 if you pull Foundation from the Internet use com.github.kangarko  -->
  148.                             <include>com.github.kangarko:Foundation*</include>
  149.                         </includes>
  150.                     </artifactSet>
  151.                     <relocations>
  152.                         <relocation>
  153.                             <pattern>org.mineacademy.fo</pattern>
  154.                             <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  155.                         </relocation>
  156.                     </relocations>
  157.                 </configuration>
  158.             </plugin>
  159.         </plugins>
  160.         <resources>
  161.             <resource>
  162.                 <directory>src/main/resources</directory>
  163.                 <filtering>true</filtering>
  164.             </resource>
  165.         </resources>
  166.     </build>
  167. </project>
  168.  
Add Comment
Please, Sign In to add comment