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

504 lines
19 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 -->
2021-01-12 18:28:12 +00:00
<version>4.9-UNOFFICIAL</version>
2020-05-09 16:22:50 +00:00
<inceptionYear>2013</inceptionYear>
<packaging>jar</packaging>
2021-01-12 18:28:12 +00:00
<!-- Project Info -->
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>
<!-- UTF-8 is our standard encoding for source files -->
2020-04-17 09:59:40 +00:00
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Target Java 8 -->
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 -->
2021-06-11 10:19:43 +00:00
<spigot.version>1.17</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-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>
<!-- Bug Tracker -->
2020-05-09 16:00:10 +00:00
<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>
<!-- License -->
2020-05-09 16:00:10 +00:00
<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>
<!-- Repositories that host our dependencies -->
<!-- Well, any that aren't found on maven-central. -->
2017-07-27 17:21:36 +00:00
<repositories>
<repository>
<!-- Spigot-API -->
2017-11-25 21:07:17 +00:00
<id>spigot-repo</id>
2020-12-09 10:41:59 +00:00
<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>
<!-- PaperLib -->
2020-06-20 19:02:03 +00:00
<id>paper-repo</id>
2020-12-09 10:41:59 +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>
2021-07-14 14:47:41 +00:00
<!-- ItemsAdder -->
2020-09-13 09:23:38 +00:00
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
2017-07-27 17:21:36 +00:00
<repository>
<!-- WorldEdit -->
2020-07-07 08:54:32 +00:00
<id>worldedit-repo</id>
2020-12-09 10:41:59 +00:00
<url>https://maven.sk89q.com/repo</url>
2017-07-27 17:21:36 +00:00
</repository>
2020-10-13 22:24:01 +00:00
<repository>
<!-- PlaceholderAPI -->
<id>placeholderapi-repo</id>
2020-12-09 10:41:59 +00:00
<url>https://repo.extendedclip.com/content/repositories/placeholderapi</url>
</repository>
2020-06-20 19:02:03 +00:00
<repository>
<!-- mcMMO -->
<id>mcmmo-repo</id>
<url>https://nexus.neetgames.com/repository/maven-public</url>
</repository>
<repository>
<!-- ClearLag -->
2020-06-20 19:02:03 +00:00
<id>walshy-public</id>
2020-12-09 10:41:59 +00:00
<url>https://repo.walshy.dev/public</url>
2020-06-20 19:02:03 +00:00
</repository>
2021-06-21 19:13:49 +00:00
<repository>
<!-- Orebfuscator -->
<id>imprex-repo</id>
<url>https://imprex.ingrim4.me/repository/maven-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>
<!-- /src/main/java/ contains all sources (production code) -->
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<!-- /src/test/java/ contains all unit tests (testing code) -->
2020-05-09 16:00:10 +00:00
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
<!-- The default goal for compiling is "clean package" -->
2020-10-03 20:45:58 +00:00
<defaultGoal>clean package</defaultGoal>
2020-05-09 16:00:10 +00:00
2021-01-12 18:28:12 +00:00
<!-- The name of the final jar -->
2017-11-27 14:49:16 +00:00
<finalName>${project.name} v${project.version}</finalName>
2020-05-09 16:00:10 +00:00
<plugins>
<plugin>
<!-- Compiler 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
<plugin>
<!-- Attach sources -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
2021-01-12 18:28:12 +00:00
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
2020-05-09 16:00:10 +00:00
<plugin>
<!-- Plugin for Unit Tests -->
2020-05-09 16:00:10 +00:00
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
2021-01-12 18:28:12 +00:00
<configuration>
<junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
<trimStackTrace>false</trimStackTrace>
</configuration>
2020-05-09 16:00:10 +00:00
</plugin>
<plugin>
<!-- Sonarcloud Scanner -->
2020-05-09 16:00:10 +00:00
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.9.0.2155</version>
2020-05-09 16:00:10 +00:00
</plugin>
<plugin>
<!-- Code Coverage Reports -->
2020-05-09 16:00:10 +00:00
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
2021-05-05 16:10:02 +00:00
<version>0.8.7</version>
2020-05-09 16:00:10 +00:00
<executions>
<execution>
<id>prepare</id>
2021-01-12 18:28:12 +00:00
2020-05-09 16:00:10 +00:00
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
2021-01-12 18:28:12 +00:00
2020-05-09 16:00:10 +00:00
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
2019-12-11 23:20:01 +00:00
<plugin>
<!-- Dependency shading -->
2019-12-11 23:20:01 +00:00
<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>
2021-01-12 18:28:12 +00:00
<!-- Relocate these to avoid clashes and conflicts -->
2019-12-11 23:20:01 +00:00
<relocations>
<relocation>
2021-07-14 14:47:41 +00:00
<pattern>io.github.bakedlibs.dough</pattern>
<shadedPattern>io.github.thebusybiscuit.slimefun4.libraries.dough</shadedPattern>
2019-12-11 23:20:01 +00:00
</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
<plugin>
<!-- Javadocs -->
2020-05-09 16:00:10 +00:00
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.0</version>
2020-05-09 16:00:10 +00:00
<configuration>
<reportOutputDirectory>${project.basedir}</reportOutputDirectory>
<destDir>docs</destDir>
<doctitle>Slimefun4 - Javadocs</doctitle>
<windowtitle>Slimefun4 - Javadocs</windowtitle>
<detectOfflineLinks>false</detectOfflineLinks>
<additionalJOption>-html5</additionalJOption>
<links>
<!-- We can reference the Spigot API in our Javadocs -->
<link>${spigot.javadocs}</link>
2020-05-09 16:00:10 +00:00
</links>
<!-- We can group packages together in our Javadocs -->
2020-05-09 16:00:10 +00:00
<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>
2021-03-21 19:06:46 +00:00
<group>
2021-04-23 17:22:25 +00:00
<title>Slimefun4 - Integrations with other
plugins</title>
2021-03-21 19:06:46 +00:00
<packages>io.github.thebusybiscuit.slimefun4.integrations*</packages>
</group>
2020-05-09 16:00:10 +00:00
<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>
2021-04-23 17:22:25 +00:00
<include>plugin.yml</include>
<include>config.yml</include>
<include>item-models.yml</include>
2021-04-23 17:22:25 +00:00
<include>wiki.json</include>
<include>languages/translators.json</include>
2021-04-23 17:22:25 +00:00
<include>tags/*.json</include>
<include>languages/**/*.yml</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>
2021-04-23 17:22:25 +00:00
<filtering>false</filtering>
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>
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.2</version>
2020-05-09 16:00:10 +00:00
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.11.2</version>
<scope>test</scope>
</dependency>
2020-05-09 16:00:10 +00:00
<dependency>
<groupId>com.github.seeseemelk</groupId>
2020-08-23 15:56:38 +00:00
<artifactId>MockBukkit-v1.16</artifactId>
<version>1.5.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>
2020-03-26 17:56:14 +00:00
<!-- Shaded packages -->
<dependency>
2021-07-14 15:41:26 +00:00
<groupId>io.github.baked-libs</groupId>
2021-07-14 14:47:41 +00:00
<artifactId>dough-api</artifactId>
2021-07-15 12:24:24 +00:00
<version>1.0.1</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.6</version>
2020-08-23 15:56:38 +00:00
<scope>compile</scope>
</dependency>
<dependency>
2020-07-20 14:15:21 +00:00
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
<version>3.11.12</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>
2021-02-23 10:10:09 +00:00
<!-- No need to shade Gson, Spigot does that already -->
2020-07-20 14:15:21 +00:00
<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>
2021-02-23 10:10:09 +00:00
<artifactId>worldedit-core</artifactId>
<version>7.2.5</version>
<scope>provided</scope>
2020-05-16 14:12:30 +00:00
<exclusions>
<exclusion>
2021-02-23 10:10:09 +00:00
<!-- We don't need any of the dependencies -->
<groupId>*</groupId>
<artifactId>*</artifactId>
2020-05-16 14:12:30 +00:00
</exclusion>
2021-02-23 10:10:09 +00:00
</exclusions>
</dependency>
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.2.5</version>
2021-02-23 10:10:09 +00:00
<scope>provided</scope>
2021-02-23 10:10:09 +00:00
<exclusions>
2020-10-13 22:24:01 +00:00
<exclusion>
2021-02-23 10:10:09 +00:00
<!-- We don't need any of the dependencies -->
<groupId>*</groupId>
<artifactId>*</artifactId>
2020-10-13 22:24:01 +00:00
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.200</version>
2020-10-13 22:24:01 +00:00
<scope>provided</scope>
2020-10-13 22:24:01 +00:00
<exclusions>
<exclusion>
2021-02-23 10:10:09 +00:00
<!-- We don't need any of the dependencies -->
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
2020-05-16 14:12:30 +00:00
</exclusions>
</dependency>
<dependency>
2019-12-11 23:20:01 +00:00
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.10</version>
2019-12-11 23:20:01 +00:00
<scope>provided</scope>
<exclusions>
<exclusion>
2021-02-23 10:10:09 +00:00
<!-- We don't need any of the dependencies -->
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</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>
2021-02-23 10:10:09 +00:00
<exclusions>
<exclusion>
<!-- We don't need any of the dependencies -->
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
2018-05-05 17:42:27 +00:00
</dependency>
2020-12-09 10:41:59 +00:00
<dependency>
<groupId>com.github.LoneDev6</groupId>
<artifactId>itemsadder-api</artifactId>
<version>2.4.6</version>
2020-12-09 10:41:59 +00:00
<scope>provided</scope>
2021-06-21 19:13:49 +00:00
<exclusions>
<exclusion>
<!-- We don't need any of the dependencies -->
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.imprex</groupId>
<artifactId>orebfuscator-api</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
2020-12-09 10:41:59 +00:00
<exclusions>
<exclusion>
2021-02-23 10:10:09 +00:00
<!-- We don't need any of the dependencies -->
<groupId>*</groupId>
<artifactId>*</artifactId>
2020-12-09 10:41:59 +00:00
</exclusion>
</exclusions>
</dependency>
2017-07-27 17:21:36 +00:00
</dependencies>
2021-04-21 09:50:37 +00:00
</project>