Varo/varo/pom.xml

192 lines
6.8 KiB
XML
Raw Permalink Normal View History

2020-05-02 18:25:42 +00:00
<?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>de.cliffbreak.varo</groupId>
<artifactId>varo</artifactId>
<version>1.0</version>
<name>varo</name>
<!-- FIXME change it to the project's website -->
<url>https://cliffbreak.de/</url>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2020-05-04 16:36:23 +00:00
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
2020-05-02 18:25:42 +00:00
</properties>
<repositories>
2020-05-04 16:32:09 +00:00
<repository>
2020-05-02 18:25:42 +00:00
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
2020-05-04 16:32:09 +00:00
</repository>
2020-05-02 18:25:42 +00:00
<repository>
<id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
<repository>
<id>jcenter</id>
<name>jcenter-bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
2020-05-02 18:25:42 +00:00
</repositories>
<dependencies>
2020-05-04 16:32:09 +00:00
<!--Paperclip API -->
2020-05-02 18:25:42 +00:00
<dependency>
<groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
2020-05-04 16:32:09 +00:00
<!--Spigot API and NMS -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Java Discord API (JDA) -->
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>4.1.1_101</version>
<exclusions>
<exclusion>
<groupId>club.minnced</groupId>
<artifactId>opus-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- json.simple -->
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<!-- log4j -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
2020-05-02 18:25:42 +00:00
</dependencies>
<build>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<includes>
<include>plugin.yml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<!-- relocated because Bukkit includes Gson and I have no control over it -->
<!-- <relocation>
<pattern>com.google</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.google</shadedPattern>
</relocation> -->
<!-- relocated due to api usage -->
<relocation>
<pattern>net.dv8tion.jda</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.jda</shadedPattern>
</relocation>
<relocation>
<pattern>com.neovisionaries.ws</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.ws</shadedPattern>
</relocation>
<relocation>
<pattern>net.kyori</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.net.kyori</shadedPattern>
</relocation>
<relocation>
<pattern>me.vankka</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.me.vankka</shadedPattern>
</relocation>
<!-- relocated due to dependency hell -->
<!-- <relocation>
<pattern>org.apache.commons</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.commons</shadedPattern>
</relocation> -->
<relocation>
<pattern>org.apache.http</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.apache.http</shadedPattern>
</relocation>
<relocation>
<pattern>org.json</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.json</shadedPattern>
</relocation>
<relocation>
<pattern>org.json.simple</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.json.simple</shadedPattern>
</relocation>
<relocation>
<pattern>okhttp3</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.okhttp3</shadedPattern>
</relocation>
<relocation>
<pattern>okio</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.okio</shadedPattern>
</relocation>
<!-- <relocation>
<pattern>gnu.trove</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.trove</shadedPattern>
</relocation> -->
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>de.cliffbreak.varo.dependencies.jackson</shadedPattern>
</relocation>
</relocations>
<minimizeJar>true</minimizeJar>
<filters>
<filter>
<artifact>commons-logging:commons-logging</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>com.fasterxml.jackson.core:jackson-databind</artifact>
<includes>
<include>**</include>
</includes>
</filter>
</filters>
</configuration>
</execution>
</executions>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</plugin>
</plugins>
2020-05-02 18:25:42 +00:00
</build>
</project>