368 lines
14 KiB
XML
368 lines
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
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>com.djrapitops</groupId>
|
|
<artifactId>Plan</artifactId>
|
|
<version>4.5.0-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>bungeecord-repo</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
</repository>
|
|
<repository>
|
|
<id>spigot-repo</id>
|
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
</repository>
|
|
<repository>
|
|
<id>paper-repo</id>
|
|
<url>https://repo.destroystokyo.com/repository/maven-public/</url>
|
|
</repository>
|
|
<repository>
|
|
<id>sponge-repo</id>
|
|
<url>https://repo.spongepowered.org/maven</url>
|
|
</repository>
|
|
<repository>
|
|
<id>velocity-repo</id>
|
|
<url>https://repo.velocitypowered.com/snapshots/</url>
|
|
</repository>
|
|
<!-- RedisBungee Repository -->
|
|
<repository>
|
|
<id>md_5-snapshots</id>
|
|
<url>http://repo.md-5.net/content/repositories/snapshots/</url>
|
|
</repository>
|
|
<!-- Metrics -->
|
|
<repository>
|
|
<id>bstats-repo</id>
|
|
<url>http://repo.bstats.org/content/repositories/releases/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<!-- Framework for easier plugin development -->
|
|
<dependency>
|
|
<groupId>com.djrapitops</groupId>
|
|
<artifactId>AbstractPluginFramework</artifactId>
|
|
<version>3.3.1</version>
|
|
</dependency>
|
|
<!-- SoftDepended Plugins -->
|
|
<dependency>
|
|
<groupId>com.djrapitops</groupId>
|
|
<artifactId>PlanPluginBridge</artifactId>
|
|
<version>4.5.0-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<!-- Paper API -->
|
|
<dependency>
|
|
<groupId>com.destroystokyo.paper</groupId>
|
|
<artifactId>paper-api</artifactId>
|
|
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Spigot API -->
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot-api</artifactId>
|
|
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
<type>jar</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bukkit</groupId>
|
|
<artifactId>bukkit</artifactId>
|
|
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- BungeeCord -->
|
|
<dependency>
|
|
<groupId>net.md-5</groupId>
|
|
<artifactId>bungeecord-api</artifactId>
|
|
<version>1.12-SNAPSHOT</version>
|
|
<type>jar</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Velocity -->
|
|
<dependency>
|
|
<groupId>com.velocitypowered</groupId>
|
|
<artifactId>velocity-api</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<type>jar</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- SpongePowered -->
|
|
<dependency>
|
|
<groupId>org.spongepowered</groupId>
|
|
<artifactId>spongeapi</artifactId>
|
|
<version>7.1.0</version>
|
|
<type>jar</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- RedisBungee -->
|
|
<dependency>
|
|
<groupId>com.imaginarycode.minecraft</groupId>
|
|
<artifactId>RedisBungee</artifactId>
|
|
<version>0.3.8-SNAPSHOT</version>
|
|
<type>jar</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- String Replacer -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-text</artifactId>
|
|
<version>1.3</version>
|
|
</dependency>
|
|
<!-- HttpClient -->
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>4.5.6</version>
|
|
</dependency>
|
|
<!-- Connection Pool -->
|
|
<dependency>
|
|
<groupId>com.zaxxer</groupId>
|
|
<artifactId>HikariCP</artifactId>
|
|
<version>3.2.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-nop</artifactId>
|
|
<version>1.7.25</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- Geo IP -->
|
|
<dependency>
|
|
<groupId>com.maxmind.geoip2</groupId>
|
|
<artifactId>geoip2</artifactId>
|
|
<version>2.9.0</version>
|
|
</dependency>
|
|
|
|
<!-- Cache with invalidation -->
|
|
<dependency>
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
<artifactId>caffeine</artifactId>
|
|
<version>2.6.2</version>
|
|
</dependency>
|
|
|
|
<!-- Metrics -->
|
|
<dependency>
|
|
<groupId>org.bstats</groupId>
|
|
<artifactId>bstats-bukkit</artifactId>
|
|
<version>1.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bstats</groupId>
|
|
<artifactId>bstats-bungeecord</artifactId>
|
|
<version>1.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bstats</groupId>
|
|
<artifactId>bstats-sponge</artifactId>
|
|
<version>1.2</version>
|
|
</dependency>
|
|
|
|
<!-- HTML Compression -->
|
|
<dependency>
|
|
<groupId>com.googlecode.htmlcompressor</groupId>
|
|
<artifactId>htmlcompressor</artifactId>
|
|
<version>1.5.2</version>
|
|
</dependency>
|
|
|
|
<!-- Mockito (Test Dependency) -->
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>2.13.0</version>
|
|
<type>jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- SQLite (Test Dependency) -->
|
|
<dependency>
|
|
<groupId>org.xerial</groupId>
|
|
<artifactId>sqlite-jdbc</artifactId>
|
|
<version>3.23.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.12</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest-core</artifactId>
|
|
<version>1.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.dagger</groupId>
|
|
<artifactId>dagger</artifactId>
|
|
<version>2.17</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<defaultGoal>clean package install</defaultGoal>
|
|
<finalName>${project.name}</finalName>
|
|
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
|
|
<testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
|
|
<resources>
|
|
<resource>
|
|
<targetPath>.</targetPath>
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
<includes>
|
|
<include>**/*.keystore</include>
|
|
<include>**/*.css</include>
|
|
<include>**/*.yml</include>
|
|
<include>**/*.html</include>
|
|
<include>**/*.js</include>
|
|
<include>**/*.css</include>
|
|
<include>locale/*.txt</include>
|
|
<include>**/*.ico</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.7.0</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
<annotationProcessorPaths>
|
|
<path>
|
|
<groupId>com.google.dagger</groupId>
|
|
<artifactId>dagger-compiler</artifactId>
|
|
<version>2.17</version>
|
|
</path>
|
|
<path>
|
|
<groupId>com.velocitypowered</groupId>
|
|
<artifactId>velocity-api</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</path>
|
|
<path>
|
|
<groupId>org.spongepowered</groupId>
|
|
<artifactId>spongeapi</artifactId>
|
|
<version>7.1.0</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<artifactSet>
|
|
<excludes>
|
|
<exclude>org.powermock:*</exclude>
|
|
<exclude>org.javassist:*</exclude>
|
|
<exclude>com.thoughtworks.xstream:*</exclude>
|
|
<exclude>xmlpull:*</exclude>
|
|
<exclude>xpp3:*</exclude>
|
|
<exclude>org.objenesis:*</exclude>
|
|
<exclude>cglib:*</exclude>
|
|
<exclude>org.bukkit:*</exclude>
|
|
<exclude>org.mockito:*</exclude>
|
|
<exclude>org.easymock:*</exclude>
|
|
<exclude>junit:*</exclude>
|
|
<exclued>org.slf4j:*</exclued>
|
|
</excludes>
|
|
</artifactSet>
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>org.apache</pattern>
|
|
<shadedPattern>plan.org.apache</shadedPattern>
|
|
<excludes>
|
|
<exclude>org.apache.logging.**</exclude>
|
|
</excludes>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>com.maxmind</pattern>
|
|
<shadedPattern>plan.com.maxmind</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>com.fasterxml</pattern>
|
|
<shadedPattern>plan.com.fasterxml</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>com.zaxxer</pattern>
|
|
<shadedPattern>plan.com.zaxxer</shadedPattern>
|
|
</relocation>
|
|
<!--<relocation>-->
|
|
<!--<pattern>org.slf4j</pattern>-->
|
|
<!--<shadedPattern>plan.org.slf4j</shadedPattern>-->
|
|
<!--</relocation>-->
|
|
<relocation>
|
|
<pattern>org.bstats</pattern>
|
|
<shadedPattern>com.djrapitops.plan.utilities.metrics</shadedPattern>
|
|
</relocation>
|
|
</relocations>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
<version>2.5.2</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.0.2</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/test/*</exclude>
|
|
<exclude>**/*/test/*</exclude>
|
|
<exclude>**/*/test.*</exclude>
|
|
<exclude>**/test/**/*</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>0.8.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>2.17</version>
|
|
<configuration>
|
|
<excludes>**/test/**/*</excludes>
|
|
<configLocation>checkstyle.xml</configLocation>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.10.4</version>
|
|
<configuration>
|
|
<excludePackageNames>test.*</excludePackageNames>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<sonar.language>java</sonar.language>
|
|
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
|
|
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
|
|
<sonar.jacoco.reportPaths>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPaths>
|
|
</properties>
|
|
</project>
|