Advertisement
JackOUT

Untitled

May 25th, 2022
970
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 https://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>SMP</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.smp.SMPPlugin</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>17</java.version>
  34.  
  35.         <!-- Change foundation.version to the latest one from
  36.             https://github.com/kangarko/Foundation/releases -->
  37.         <foundation.version>5.13.0c</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.         <dependency>
  57.             <groupId>games.coob</groupId>
  58.             <artifactId>nmsinterface</artifactId>
  59.             <version>1.0.0</version>
  60.             <scope>compile</scope>
  61.         </dependency>
  62.         <dependency>
  63.             <groupId>games.coob</groupId>
  64.             <artifactId>v1_18</artifactId>
  65.             <version>1.0.0</version>
  66.             <scope>compile</scope>
  67.         </dependency>
  68.         <dependency>
  69.             <groupId>games.coob</groupId>
  70.             <artifactId>v1_17</artifactId>
  71.             <version>1.0.0</version>
  72.             <scope>compile</scope>
  73.         </dependency>
  74.         <!-- Use our Foundation library -->
  75.         <dependency>
  76.  
  77.             <!-- IF you have Foundation on your disk, change groupId to org.mineacademy,
  78.                 if you pull Foundation from the Internet use com.github.kangarko
  79.  
  80.                 *WARNING* If you have Foundation on your disk, you also need to edit the
  81.                 <include>com.github.kangarko:Foundation*</include> line, see below! -->
  82.             <groupId>com.github.kangarko</groupId>
  83.             <artifactId>Foundation</artifactId>
  84.             <version>${foundation.version}</version>
  85.         </dependency>
  86.  
  87.         <dependency>
  88.             <groupId>com.elmakers.mine.bukkit</groupId>
  89.             <artifactId>EffectLib</artifactId>
  90.             <version>9.3</version>
  91.             <scope>compile</scope>
  92.         </dependency>
  93.  
  94.         <!-- (Optional) Access the server jar for NMS (groupId, artifactId and version do not matter and you
  95. can only use it for your own organization purposes)
  96.  
  97. Make sure the server is on the top because the IDE will prioritize its methods
  98. over the latest Spigot API from Foundation in case you're developing for another MC version
  99.  
  100. NB: Edit the <systemPath> to point out to your patched server file on your disk.-->
  101.  
  102.         <dependency>
  103.             <groupId>coob.games.server</groupId>
  104.             <artifactId>Paper-1.16</artifactId>
  105.             <version>1</version>
  106.             <scope>system</scope>
  107.             <systemPath>${project.basedir}/../library/patched_1.16.5.jar</systemPath>
  108.         </dependency>
  109.         <dependency>
  110.             <groupId>coob.games.server</groupId>
  111.             <artifactId>Paper-1.12</artifactId>
  112.             <version>1</version>
  113.             <scope>system</scope>
  114.             <systemPath>${project.basedir}/../library/patched_1.12.2.jar</systemPath>
  115.         </dependency>
  116.         <dependency>
  117.             <groupId>coob.games.server</groupId>
  118.             <artifactId>Paper-1.8</artifactId>
  119.             <version>1</version>
  120.             <scope>system</scope>
  121.             <systemPath>${project.basedir}/../library/patched_1.8.8.jar</systemPath>
  122.         </dependency>
  123.     </dependencies>
  124.  
  125.     <!-- DO NOT EDIT unless instructed to do so or you know what you're doing -->
  126.     <build>
  127.         <finalName>${project.name}-${project.version}</finalName>
  128.         <plugins>
  129.             <plugin>
  130.                 <groupId>org.apache.maven.plugins</groupId>
  131.                 <artifactId>maven-jar-plugin</artifactId>
  132.  
  133.                 <!-- Change version to the latest one from
  134.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
  135.                 <version>3.2.2</version>
  136.             </plugin>
  137.             <plugin>
  138.                 <groupId>org.apache.maven.plugins</groupId>
  139.                 <artifactId>maven-compiler-plugin</artifactId>
  140.  
  141.                 <!-- Change version to the latest one from
  142.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  143.                 <version>3.8.1</version>
  144.                 <configuration>
  145.                     <source>16</source>
  146.                     <target>16</target>
  147.                 </configuration>
  148.             </plugin>
  149.             <plugin>
  150.                 <groupId>org.apache.maven.plugins</groupId>
  151.                 <artifactId>maven-shade-plugin</artifactId>
  152.  
  153.                 <!-- Change version to the latest one from (3.2.4 > 16 < 3.3.0-SNAPSHOT)
  154.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin -->
  155.                 <version>3.3.0-SNAPSHOT</version>
  156.                 <executions>
  157.                     <execution>
  158.                         <phase>package</phase>
  159.                         <goals>
  160.                             <goal>shade</goal>
  161.                         </goals>
  162.                     </execution>
  163.                 </executions>
  164.                 <configuration>
  165.                     <createDependencyReducedPom>false</createDependencyReducedPom>
  166.                     <artifactSet>
  167.                         <includes>
  168.  
  169.                             <!-- IF you have Foundation on your disk, change include to org.mineacademy,
  170.                                 if you pull Foundation from the Internet use com.github.kangarko  -->
  171.                             <include>com.github.kangarko:Foundation*</include>
  172.                             <include>games.coob:v1_17*</include>
  173.                             <include>games.coob:v1_18*</include>
  174.                             <include>games.coob:nmsinterface*</include>
  175.                         </includes>
  176.                     </artifactSet>
  177.                     <relocations>
  178.                         <relocation>
  179.                             <pattern>org.mineacademy.fo</pattern>
  180.                             <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  181.                         </relocation>
  182.                         <relocation>
  183.                             <pattern>games.coob.v1_17</pattern>
  184.                             <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  185.                         </relocation>
  186.                         <relocation>
  187.                             <pattern>games.coob.v1_18</pattern>
  188.                             <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  189.                         </relocation>
  190.                         <relocation>
  191.                             <pattern>games.coob.nmsinterface</pattern>
  192.                             <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  193.                         </relocation>
  194.                     </relocations>
  195.                 </configuration>
  196.             </plugin>
  197.         </plugins>
  198.         <resources>
  199.             <resource>
  200.                 <directory>src/main/resources</directory>
  201.                 <filtering>true</filtering>
  202.             </resource>
  203.         </resources>
  204.     </build>
  205. </project>
  206.  
Advertisement
RAW Paste Data Copied
Advertisement