Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>games.coob</groupId>
- <artifactId>skywars</artifactId>
- <name>SkyWars</name>
- <version>1.0.0</version>
- <!-- DO NOT EDIT. -->
- <packaging>jar</packaging>
- <!-- ############################################################################### -->
- <!--
- Configure some of the Maven settings. We also define
- our new variables here such as the main class or Java version
- for our plugin.
- You can use those variables in your src/resources folder. See
- plugin.yml folder there for example usage.
- -->
- <properties>
- <!-- Change to your name or the main collaborator. -->
- <author>Coob</author>
- <!-- The full path to your plugin's main class, so that Spigot can find and load it -->
- <main.class>games.coob.skywars.SkyWarsPlugin</main.class>
- <!-- The Java version your plugin uses, see bstats.org for what most servers have and use that -->
- <java.version>16</java.version>
- <!-- Change to the latest one from https://github.com/kangarko/Foundation/releases
- or change to "LATEST" if you downloaded Foundation to your disk. -->
- <foundation.version>5.12.3</foundation.version>
- <!-- Leave on "com.github.kangarko" if you use Foundation from GitHub like most people,
- or change to "org.mineacademy" if you downloaded our library to your disk. -->
- <foundation.path>com.github.kangarko</foundation.path>
- <!-- DO NOT EDIT. -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <repositories>
- <!-- DO NOT EDIT, used to pull Foundation from the JitPack site. -->
- <repository>
- <id>jitpack.io</id>
- <url>https://jitpack.io</url>
- </repository>
- </repositories>
- <!-- UNCOMMENT ONLY IF YOUR java.version IS SET TO JAVA 16 OR HIGHER. -->
- <pluginRepositories>
- <pluginRepository>
- <id>maven-snapshots</id>
- <url>https://repository.apache.org/content/repositories/snapshots/</url>
- </pluginRepository>
- </pluginRepositories>
- <dependencies>
- <!--
- Import the Spigot API since it's necessary for our plugin
- Make sure you change the version to the latest version you want to use for your plugin.
- -->
- <dependency>
- <groupId>org.spigotmc</groupId>
- <artifactId>spigot-api</artifactId>
- <!-- Change this to the latest version to stay up to date -->
- <version>1.17.1-R0.1-SNAPSHOT</version>
- <!--
- The scope indicates if this library should be packaged together with our plugin
- when we want to publish it.
- Set this to "compile" if you want all classes from this library to be copied
- to your plugin's jar, otherwise set this to "provided".
- -->
- <scope>provided</scope>
- </dependency>
- <!--
- Import the Foundation library to kickstart our plugin development
- -->
- <dependency>
- <groupId>com.github.kangarko</groupId>
- <artifactId>Foundation</artifactId>
- <version>${foundation.version}</version>
- <!-- Include Foundation and its dependencies. There are exceptions, see shade plugin below -->
- <scope>compile</scope>
- </dependency>
- <!--
- Import the LuckPerms API to manage our permissions
- -->
- <dependency>
- <groupId>net.luckperms</groupId>
- <artifactId>api</artifactId>
- <version>5.3</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>2.11.0</version>
- </dependency>
- </dependencies>
- <!-- DO NOT EDIT unless instructed to do so or you know what you're doing. -->
- <build>
- <finalName>${project.name}-${project.version}</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <!-- Change version to the latest one from
- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
- <version>3.2.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <!-- Change version to the latest one from
- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
- <version>3.8.1</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <!-- Change version to the latest one from
- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin
- IF YOU USE JAVA 16 THEN PLACE 3.3.0-SNAPSHOT TO THE VERSION AND MAKE SURE TO
- UNCOMMENT <pluginRepositories> above.
- -->
- <version>3.3.0-SNAPSHOT</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <!--
- By default we configure the Foundation to include itself and all classes when
- we set the scope to compile (see above).
- There are many libraries from Foundation we will not need to use, and here
- can you specify which ones to exclude. Please leave the default ones as they are.
- -->
- <configuration>
- <createDependencyReducedPom>false</createDependencyReducedPom>
- <finalName>${project.name}-${project.version}</finalName>
- <artifactSet>
- <includes>
- <include>org.mineacademy:Game*</include>
- <include>com.github.kangarko:Foundation*</include>
- </includes>
- <excludes>
- <exclude>org.mineacademy:GameAPI*</exclude>
- </excludes>
- </artifactSet>
- <relocations>
- <relocation>
- <pattern>org.mineacademy</pattern>
- <pattern>commons-io</pattern>
- <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
- <excludes>
- <exclude>org.mineacademy.${project.artifactId}.*</exclude>
- <exclude>org.mineacademy.gameapi.*</exclude>
- <exclude>org.mineacademy.boss.*</exclude>
- <exclude>org.mineacademy.worldeditbridge.*</exclude>
- </excludes>
- </relocation>
- </relocations>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <!--
- During the build, we are going to scan all files in src/main/resources
- folder such as plugin.yml and your settings files and replace all variables
- such as ${main.class} with their proper values.
- You can use native variables such as ${project.X} or the ones you defined above
- in the properties section.
- -->
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement