Advertisement
JackOUT

Untitled

Apr 22nd, 2023
1,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.49 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4.     <modelVersion>4.0.0</modelVersion>
  5.  
  6.     <!-- Change to your own main package name. -->
  7.     <groupId>games.coob</groupId>
  8.  
  9.     <!-- Change to your plugin name, must be lower cased and match your end package name. No spaces. -->
  10.     <artifactId>laserturrets</artifactId>
  11.  
  12.     <!-- Change to your plugin's name. Can contain capital letters, but do NOT use spaces. -->
  13.     <name>LaserTurrets</name>
  14.  
  15.     <!-- Change to the appropriate plugin's version, starting at 1.0.0. -->
  16.     <version>3.0.0</version>
  17.  
  18.     <!-- DO NOT EDIT. -->
  19.     <packaging>jar</packaging>
  20.  
  21.     <properties>
  22.  
  23.         <!-- Change to your name or the main project author. -->
  24.         <author>JackOUT</author>
  25.  
  26.         <!-- Change to the full path where your main plugin class is located. -->
  27.         <main.class>games.coob.laserturrets.LaserTurrets</main.class>
  28.  
  29.         <!-- Change the Java version this plugin is built on.
  30.  
  31.             IMPORTANT: For Java 8, version is "1.8", for Java 11+ it is only "11" or "17".
  32.  
  33.             If you use 1.8 then your plugin will work on newer versions,
  34.             but if you use "11" or "17" then it will NOT load on servers
  35.             with previous Java versions. We recommend you stick with 1.8.
  36.             -->
  37.         <java.version>1.8</java.version>
  38.  
  39.         <!-- Change to the latest version from https://github.com/kangarko/Foundation/releases
  40.             or change to "LATEST" if you downloaded Foundation to your disk and compiled it. -->
  41.         <foundation.version>6.3.2</foundation.version>
  42.  
  43.         <lands.version>6.28.11</lands.version>
  44.         <kingdoms.version>1.15.4.2-SNAPSHOT</kingdoms.version>
  45.         <simpleclans.version>2.18.1</simpleclans.version>
  46.         <betterteams.version>4.6.3</betterteams.version>
  47.         <uclans.version>6.1.0-r2</uclans.version>
  48.  
  49.         <!-- Leave on "com.github.kangarko" if you use Foundation from GitHub like most people,
  50.             or change to "org.mineacademy" if you downloaded our library to your disk and compiled it. -->
  51.         <foundation.path>com.github.kangarko</foundation.path>
  52.  
  53.         <!-- DO NOT EDIT. -->
  54.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  55.     </properties>
  56.  
  57.     <repositories>
  58.         <!-- DO NOT EDIT, used to pull Foundation from the JitPack site. -->
  59.         <repository>
  60.             <id>jitpack.io</id>
  61.             <url>https://jitpack.io</url>
  62.         </repository>
  63.  
  64.         <repository>
  65.             <id>snapshots-repo</id>
  66.             <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  67.             <releases>
  68.                 <enabled>false</enabled>
  69.             </releases>
  70.             <snapshots>
  71.                 <enabled>true</enabled>
  72.             </snapshots>
  73.         </repository>
  74.  
  75.         <repository>
  76.             <id>roinujnosde-repo</id>
  77.             <url>https://repo.roinujnosde.me/releases/</url>
  78.         </repository>
  79.     </repositories>
  80.  
  81.     <!-- Do NOT edit. -->
  82.     <pluginRepositories>
  83.         <pluginRepository>
  84.             <id>maven-snapshots</id>
  85.             <url>https://repository.apache.org/content/repositories/snapshots/</url>
  86.         </pluginRepository>
  87.     </pluginRepositories>
  88.  
  89.     <dependencies>
  90.         <!-- We do not need to import Spigot API since it is made available through Foundation below.
  91.            If you want to code for another MC version, import it above Foundation as per https://www.spigotmc.org/wiki/spigot-maven/ -->
  92.  
  93.         <!-- Use our Foundation library. It contains the latest Spigot API, you only need to import that if you build
  94.             for a different version. In that case, place your API above Foundation so Maven will prioritize it. -->
  95.  
  96.         <dependency>
  97.             <groupId>${foundation.path}</groupId>
  98.             <artifactId>Foundation</artifactId>
  99.             <version>${foundation.version}</version>
  100.         </dependency>
  101.  
  102.         <!-- (Optional) Access the server jar for NMS (groupId, artifactId and version do not matter,
  103.             but keep version in artifactId and not in version if using multiple NMS imports,
  104.             otherwise Maven will fail to import them correctly).
  105.  
  106.             NB: The <systemPath> is set to the "library" folder in your source folder (in the same parent
  107.                 directory where you have "target" and will look for file patched_1.8.8.jar there as an example. -->
  108.         <dependency>
  109.             <groupId>paper-server</groupId>
  110.             <artifactId>Paper-1.8.8</artifactId>
  111.             <version>1</version>
  112.             <scope>system</scope>
  113.             <systemPath>/Users/jack.bikar/Desktop/Test Servers/1.8/cache/patched_1.8.8.jar</systemPath>
  114.         </dependency>
  115.  
  116.         <dependency>
  117.             <groupId>com.github.angeschossen</groupId>
  118.             <artifactId>LandsAPI</artifactId>
  119.             <version>${lands.version}</version>
  120.             <scope>provided</scope>
  121.         </dependency>
  122.  
  123.         <dependency>
  124.             <groupId>com.github.cryptomorin</groupId>
  125.             <artifactId>kingdoms</artifactId>
  126.             <version>${kingdoms.version}</version>
  127.             <scope>provided</scope>
  128.         </dependency>
  129.  
  130.         <dependency>
  131.             <groupId>net.sacredlabyrinth.phaed.simpleclans</groupId>
  132.             <artifactId>SimpleClans</artifactId>
  133.             <version>${simpleclans.version}</version>
  134.             <scope>provided</scope>
  135.         </dependency>
  136.  
  137.         <dependency>
  138.             <groupId>com.github.booksaw</groupId>
  139.             <artifactId>BetterTeams</artifactId>
  140.             <version>${betterteams.version}</version>
  141.             <scope>provided</scope>
  142.         </dependency>
  143.  
  144.         <dependency>
  145.             <groupId>com.github.UlrichBR</groupId>
  146.             <artifactId>UClansV6-API</artifactId>
  147.             <version>${uclans.version}</version>
  148.         </dependency>
  149.  
  150.         <dependency>
  151.             <groupId>Factions</groupId>
  152.             <artifactId>MedievalFactions</artifactId>
  153.             <version>LATEST</version>
  154.             <scope>system</scope>
  155.             <systemPath>${project.basedir}/libs/Medieval-Factions.jar</systemPath>
  156.         </dependency>
  157.  
  158.         <dependency>
  159.             <groupId>me.glaremasters</groupId>
  160.             <artifactId>Konquest</artifactId>
  161.             <version>LATEST</version>
  162.             <scope>system</scope>
  163.             <systemPath>${project.basedir}/libs/Konquest-0.10.3.jar</systemPath>
  164.         </dependency>
  165.     </dependencies>
  166.  
  167.     <!-- DO NOT EDIT unless instructed to do so or you know what you're doing. -->
  168.     <build>
  169.         <finalName>${project.name}-${project.version}</finalName>
  170.         <plugins>
  171.             <plugin>
  172.                 <groupId>org.apache.maven.plugins</groupId>
  173.                 <artifactId>maven-jar-plugin</artifactId>
  174.  
  175.                 <!-- Change version to the latest one from
  176.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
  177.                 <version>3.2.2</version>
  178.             </plugin>
  179.             <plugin>
  180.                 <groupId>org.apache.maven.plugins</groupId>
  181.                 <artifactId>maven-compiler-plugin</artifactId>
  182.  
  183.                 <!-- Change version to the latest one from
  184.                     https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  185.                 <version>3.10.1</version>
  186.                 <configuration>
  187.                     <source>${java.version}</source>
  188.                     <target>${java.version}</target>
  189.                 </configuration>
  190.             </plugin>
  191.             <plugin>
  192.                 <groupId>org.apache.maven.plugins</groupId>
  193.                 <artifactId>maven-shade-plugin</artifactId>
  194.  
  195.                 <!-- We use latest snapshot here for modern Java compatibility. Change version to the latest one from
  196.                     https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-shade-plugin/ -->
  197.                 <version>3.3.1-SNAPSHOT</version>
  198.                 <executions>
  199.                     <execution>
  200.                         <phase>package</phase>
  201.                         <goals>
  202.                             <goal>shade</goal>
  203.                         </goals>
  204.                     </execution>
  205.                 </executions>
  206.                 <configuration>
  207.                     <createDependencyReducedPom>false</createDependencyReducedPom>
  208.                     <artifactSet>
  209.                         <includes>
  210.                             <include>${foundation.path}:Foundation*</include>
  211.                         </includes>
  212.                     </artifactSet>
  213.                     <relocations>
  214.                         <!-- Move the Foundation library into your own package in "lib" subpackage to prevent interference. -->
  215.                         <relocation>
  216.                             <pattern>org.mineacademy.fo</pattern>
  217.                             <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  218.                         </relocation>
  219.                     </relocations>
  220.                 </configuration>
  221.             </plugin>
  222.         </plugins>
  223.         <resources>
  224.             <resource>
  225.                 <directory>src/main/resources</directory>
  226.                 <filtering>true</filtering>
  227.             </resource>
  228.         </resources>
  229.     </build>
  230. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement