1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
Slimefun4/pom.xml

399 lines
15 KiB
XML
Raw Normal View History

2017-07-27 17:21:36 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2020-05-06 20:08:15 +00:00
<project xmlns="http://maven.apache.org/POM/4.0.0"
2020-05-09 16:00:10 +00:00
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">
2017-07-27 17:21:36 +00:00
<modelVersion>4.0.0</modelVersion>
2020-09-24 17:40:22 +00:00
<groupId>com.github.slimefun</groupId>
2017-07-27 17:21:36 +00:00
<artifactId>Slimefun</artifactId>
2020-05-09 16:00:10 +00:00
<!-- Our default version will be UNOFFICIAL, this will prevent auto updates -->
2020-03-26 17:56:14 +00:00
<!-- from overriding our local test file -->
2020-09-08 10:06:12 +00:00
<version>4.8-UNOFFICIAL</version>
2020-05-09 16:22:50 +00:00
<inceptionYear>2013</inceptionYear>
<packaging>jar</packaging>
2020-08-23 15:56:38 +00:00
<description>Slimefun is a Spigot/Paper plugin that simulates a modpack-like atmosphere by adding over 500 new items and recipes to your Minecraft Server.</description>
2020-09-06 15:19:02 +00:00
<url>https://github.com/Slimefun/Slimefun4</url>
2020-05-09 16:00:10 +00:00
2017-07-27 17:21:36 +00:00
<properties>
2020-04-17 09:59:40 +00:00
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2017-07-27 17:21:36 +00:00
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
2020-05-09 16:00:10 +00:00
<!-- Spigot properties -->
2020-09-13 09:23:38 +00:00
<spigot.version>1.16.3</spigot.version>
<spigot.javadocs>https://hub.spigotmc.org/javadocs/spigot/</spigot.javadocs>
2020-05-09 16:00:10 +00:00
2020-03-26 17:56:14 +00:00
<!-- Default settings for sonarcloud.io -->
2020-09-24 17:40:22 +00:00
<sonar.projectKey>Slimefun_Slimefun4</sonar.projectKey>
<sonar.organization>slimefun</sonar.organization>
2020-05-09 16:00:10 +00:00
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
2020-05-09 16:22:50 +00:00
<sonar.log.level>DEBUG</sonar.log.level>
2020-09-09 11:18:43 +00:00
<sonar.exclusions>src/main/java/me/mrCookieSlime/Slimefun/bstats/bukkit/Metrics.java</sonar.exclusions>
2020-05-09 16:00:10 +00:00
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
2017-07-27 17:21:36 +00:00
</properties>
2020-05-09 16:00:10 +00:00
<issueManagement>
<system>GitHub Issues</system>
2020-09-06 15:19:02 +00:00
<url>https://github.com/Slimefun/Slimefun4/issues</url>
2020-05-09 16:00:10 +00:00
</issueManagement>
<licenses>
<license>
<name>GNU General Public License v3.0</name>
2020-09-06 15:19:02 +00:00
<url>https://github.com/Slimefun/Slimefun4/blob/master/LICENSE</url>
2020-05-09 16:00:10 +00:00
<distribution>repo</distribution>
</license>
</licenses>
2017-07-27 17:21:36 +00:00
<repositories>
<repository>
2017-11-25 21:07:17 +00:00
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
2017-07-27 17:21:36 +00:00
</repository>
2019-10-14 18:50:57 +00:00
<repository>
2020-06-20 19:02:03 +00:00
<id>paper-repo</id>
2020-08-08 09:50:56 +00:00
<url>https://papermc.io/repo/repository/maven-public/</url>
2019-10-14 18:50:57 +00:00
</repository>
2020-09-13 09:23:38 +00:00
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
2017-07-27 17:21:36 +00:00
<repository>
2020-07-07 08:54:32 +00:00
<id>worldedit-repo</id>
2019-03-26 20:17:33 +00:00
<url>https://maven.sk89q.com/repo/</url>
2017-07-27 17:21:36 +00:00
</repository>
2019-12-11 23:20:01 +00:00
<repository>
<id>placeholderapi-repo</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
2020-06-20 19:02:03 +00:00
<repository>
<id>walshy-public</id>
<url>https://repo.walshy.dev/public/</url>
</repository>
2017-07-27 17:21:36 +00:00
</repositories>
2020-05-09 16:00:10 +00:00
2017-07-27 17:21:36 +00:00
<build>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
2020-05-09 16:00:10 +00:00
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
2017-11-27 14:49:16 +00:00
<finalName>${project.name} v${project.version}</finalName>
2020-05-09 16:00:10 +00:00
<plugins>
2020-05-09 16:00:10 +00:00
<!-- Compiler plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<excludes>
2020-05-09 16:00:10 +00:00
<!-- package info files are only important for Javadocs -->
<!-- We can safely exclude them from the final jar -->
<exclude>**/package-info.java</exclude>
</excludes>
</configuration>
</plugin>
2020-05-09 16:00:10 +00:00
<!-- Attach sources -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
2020-05-09 16:00:10 +00:00
<!-- Plugin for Unit Tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
2020-05-09 16:00:10 +00:00
</plugin>
<!-- Sonarcloud Scanner -->
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.7.0.1746</version>
</plugin>
<!-- Code Coverage Reports -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
2020-05-09 16:00:10 +00:00
<executions>
<execution>
<id>prepare</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Dependency shading -->
2019-12-11 23:20:01 +00:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
2020-05-09 16:00:10 +00:00
2019-12-11 23:20:01 +00:00
<configuration>
2020-05-09 16:00:10 +00:00
2020-09-05 11:56:56 +00:00
<!-- Shade dependencies into the output jar -->
2019-12-11 23:20:01 +00:00
<relocations>
<relocation>
<pattern>io.github.thebusybiscuit.cscorelib2</pattern>
<shadedPattern>me.mrCookieSlime.Slimefun.cscorelib2</shadedPattern>
</relocation>
2020-07-19 23:51:14 +00:00
<relocation>
<pattern>io.papermc.lib</pattern>
<shadedPattern>io.github.thebusybiscuit.slimefun4.libraries.paperlib</shadedPattern>
</relocation>
2020-09-08 10:06:12 +00:00
<relocation>
<pattern>kong.unirest</pattern>
<shadedPattern>io.github.thebusybiscuit.slimefun4.libraries.unirest</shadedPattern>
</relocation>
2019-12-11 23:20:01 +00:00
</relocations>
2020-05-09 16:00:10 +00:00
<!-- Exclude unneeded metadata files from shaded dependencies -->
2020-03-26 17:56:14 +00:00
<filters>
2020-05-09 16:00:10 +00:00
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*</exclude>
</excludes>
</filter>
2020-03-26 17:56:14 +00:00
</filters>
2019-12-11 23:20:01 +00:00
</configuration>
2020-05-09 16:00:10 +00:00
2019-12-11 23:20:01 +00:00
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
2020-05-09 16:00:10 +00:00
<!-- Javadocs Settings -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<reportOutputDirectory>${project.basedir}</reportOutputDirectory>
<destDir>docs</destDir>
<doctitle>Slimefun4 - Javadocs</doctitle>
<windowtitle>Slimefun4 - Javadocs</windowtitle>
<detectOfflineLinks>false</detectOfflineLinks>
<additionalJOption>-html5</additionalJOption>
2020-08-23 15:56:38 +00:00
<!-- We can reference the Spigot API in our Javadocs -->
2020-05-09 16:00:10 +00:00
<links>
<link>${spigot.javadocs}</link>
2020-05-09 16:00:10 +00:00
</links>
<!-- We can group pakages together in our Javadocs -->
<groups>
<group>
<title>Slimefun4 - API</title>
<packages>io.github.thebusybiscuit.slimefun4.api*</packages>
</group>
<group>
<title>Slimefun4 - Core packages</title>
<packages>io.github.thebusybiscuit.slimefun4.core*</packages>
</group>
<group>
<title>Slimefun4 - Implementations</title>
<packages>io.github.thebusybiscuit.slimefun4.implementation*</packages>
</group>
<group>
<title>Slimefun4 - Common utility packages</title>
<packages>io.github.thebusybiscuit.slimefun4.utils*</packages>
</group>
<group>
<title>Slimefun4 - Items</title>
2020-05-09 16:00:10 +00:00
<packages>io.github.thebusybiscuit.slimefun4.implementation.items*</packages>
</group>
<group>
<title>Slimefun4 - Multiblocks</title>
<packages>io.github.thebusybiscuit.slimefun4.implementation.items.multiblocks*</packages>
</group>
<group>
<title>Slimefun4 - Electrical Machines</title>
<packages>io.github.thebusybiscuit.slimefun4.implementation.items.electric*</packages>
</group>
2020-05-09 16:00:10 +00:00
<group>
<title>Slimefun4 - Old packages</title>
<packages>me.mrCookieSlime.Slimefun*</packages>
</group>
</groups>
</configuration>
</plugin>
</plugins>
2020-05-09 16:00:10 +00:00
2017-07-27 17:21:36 +00:00
<resources>
2020-05-09 16:00:10 +00:00
<!-- Resources we want to include, e.g. configs or language files -->
2017-07-27 17:21:36 +00:00
<resource>
<directory>${basedir}/src/main/resources</directory>
2017-07-27 17:21:36 +00:00
<filtering>true</filtering>
2020-05-09 16:00:10 +00:00
2017-07-27 17:21:36 +00:00
<includes>
<include>*</include>
2020-01-10 15:25:10 +00:00
<include>languages/*</include>
2017-07-27 17:21:36 +00:00
</includes>
</resource>
2020-05-09 16:00:10 +00:00
<!-- We also want to include our LICENSE file -->
2020-03-26 17:56:14 +00:00
<resource>
<directory>${basedir}</directory>
2020-05-09 16:00:10 +00:00
2020-03-26 17:56:14 +00:00
<includes>
<include>LICENSE</include>
</includes>
</resource>
2017-07-27 17:21:36 +00:00
</resources>
</build>
2020-05-09 16:00:10 +00:00
2017-07-27 17:21:36 +00:00
<dependencies>
2020-05-09 16:00:10 +00:00
<!-- Hard dependencies -->
2017-07-27 17:21:36 +00:00
<dependency>
2020-06-25 05:05:17 +00:00
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>${spigot.version}-R0.1-SNAPSHOT</version>
2019-02-20 11:20:44 +00:00
<scope>provided</scope>
2017-07-27 17:21:36 +00:00
</dependency>
<dependency>
2020-06-25 08:31:50 +00:00
<groupId>com.github.TheBusyBiscuit</groupId>
2018-05-05 17:42:27 +00:00
<artifactId>CS-CoreLib</artifactId>
2020-09-13 09:37:07 +00:00
<version>1.7</version>
<scope>provided</scope>
2018-05-05 17:42:27 +00:00
</dependency>
2020-05-09 16:00:10 +00:00
2020-09-05 11:56:56 +00:00
<!-- Development dependencies -->
2020-09-02 08:31:35 +00:00
<dependency>
2020-09-05 11:56:56 +00:00
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
2020-09-02 08:31:35 +00:00
<scope>provided</scope>
</dependency>
2020-09-05 11:56:56 +00:00
<!-- Testing dependencies -->
2020-05-09 16:00:10 +00:00
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.7.0</version>
2020-05-09 16:00:10 +00:00
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.seeseemelk</groupId>
2020-08-23 15:56:38 +00:00
<artifactId>MockBukkit-v1.16</artifactId>
<version>0.6.0</version>
2020-05-09 16:00:10 +00:00
<scope>test</scope>
<exclusions>
<exclusion>
<!-- We use javax.annotation instead. Excluding this -->
<!-- prevents us from using inconsistent annotations -->
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
2020-05-09 16:00:10 +00:00
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.5.13</version>
2020-05-09 16:00:10 +00:00
<scope>test</scope>
</dependency>
2020-03-26 17:56:14 +00:00
<!-- Shaded packages -->
<dependency>
2020-06-25 08:31:50 +00:00
<groupId>com.github.TheBusyBiscuit</groupId>
2019-12-11 23:20:01 +00:00
<artifactId>CS-CoreLib2</artifactId>
<version>0.26</version>
2019-12-11 23:20:01 +00:00
<scope>compile</scope>
</dependency>
2020-08-23 15:56:38 +00:00
<dependency>
<groupId>io.papermc</groupId>
<artifactId>paperlib</artifactId>
<version>1.0.5</version>
<scope>compile</scope>
</dependency>
<dependency>
2020-07-20 14:15:21 +00:00
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
<version>3.11.00</version>
2020-08-23 15:56:38 +00:00
<scope>compile</scope>
2020-07-22 19:07:55 +00:00
<exclusions>
2020-07-20 14:15:21 +00:00
<exclusion>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</exclusion>
</exclusions>
</dependency>
2020-05-09 16:00:10 +00:00
2020-09-05 11:56:56 +00:00
<!-- Third party plugin integrations / soft dependencies -->
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.2.0-SNAPSHOT</version>
<scope>provided</scope>
2020-05-16 14:12:30 +00:00
<exclusions>
<exclusion>
<!-- This one is ignored because it pops up everytime -->
<!-- I try to import File... yes, I want java.io.File -->
2020-05-16 14:12:30 +00:00
<groupId>de.schlichtherle</groupId>
<artifactId>truezip</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
2019-12-11 23:20:01 +00:00
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.9</version>
2019-12-11 23:20:01 +00:00
<scope>provided</scope>
<exclusions>
<exclusion>
<!-- We use javax.annotation instead. Excluding this -->
<!-- prevents us from using inconsistent annotations -->
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.TheBusyBiscuit</groupId>
<artifactId>EmeraldEnchants2</artifactId>
<version>3cd370b5d8</version>
<scope>provided</scope>
</dependency>
2017-07-27 17:21:36 +00:00
<dependency>
2018-05-05 17:42:27 +00:00
<groupId>me.minebuilders</groupId>
<artifactId>clearlag-core</artifactId>
2020-06-20 19:02:03 +00:00
<version>3.1.6</version>
<scope>provided</scope>
2018-05-05 17:42:27 +00:00
</dependency>
2017-07-27 17:21:36 +00:00
</dependencies>
2020-06-25 11:41:30 +00:00
</project>