237 lines
9.3 KiB
XML
Executable file
237 lines
9.3 KiB
XML
Executable file
<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>
|
|
|
|
<parent>
|
|
<groupId>com.github.TBMCPlugins.ChromaCore</groupId>
|
|
<artifactId>CorePOM</artifactId>
|
|
<version>master-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<groupId>com.github.TBMCPlugins</groupId>
|
|
<artifactId>Chroma-Discord</artifactId>
|
|
<version>master-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Chroma-Discord</name>
|
|
<url>http://maven.apache.org</url>
|
|
|
|
<build>
|
|
<!-- <sourceDirectory>target/generated-sources/delombok</sourceDirectory>
|
|
<testSourceDirectory>target/generated-test-sources/delombok</testSourceDirectory> -->
|
|
<sourceDirectory>src/main/java</sourceDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
<finalName>Chroma-Discord</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.2.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactSet>
|
|
<excludes>
|
|
</excludes> <!-- http://stackoverflow.com/questions/28458058/maven-shade-plugin-exclude-a-dependency-and-all-its-transitive-dependencies -->
|
|
</artifactSet>
|
|
<!-- <minimizeJar>true</minimizeJar> Tried using filters but we need pretty much all of that 12 MB -->
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>io.netty</pattern>
|
|
<shadedPattern>btndvtm.dp.io.netty</shadedPattern>
|
|
<excludes>
|
|
</excludes>
|
|
</relocation>
|
|
</relocations>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- <plugin> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId>
|
|
<version>1.16.16.0</version> <executions> <execution> <id>delombok</id> <phase>generate-sources</phase>
|
|
<goals> <goal>delombok</goal> </goals> <configuration> <addOutputDirectory>false</addOutputDirectory>
|
|
<sourceDirectory>src/main/java</sourceDirectory> <verbose>true</verbose>
|
|
</configuration> </execution> <execution> <id>test-delombok</id> <phase>generate-test-sources</phase>
|
|
<goals> <goal>testDelombok</goal> </goals> <configuration> <addOutputDirectory>false</addOutputDirectory>
|
|
<sourceDirectory>src/test/java</sourceDirectory> </configuration> </execution>
|
|
</executions> </plugin> -->
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.4.2</version>
|
|
<configuration>
|
|
<useSystemClassLoader>false
|
|
</useSystemClassLoader> <!-- https://stackoverflow.com/a/53012553/2703239 -->
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<branch>
|
|
master
|
|
</branch> <!-- Should be master if building ButtonCore locally - the CI will overwrite it (see below) -->
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spigot-repo</id>
|
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
</repository>
|
|
<repository> <!-- This repo fixes issues with transitive dependencies -->
|
|
<id>jcenter</id>
|
|
<url>http://jcenter.bintray.com</url>
|
|
</repository>
|
|
<repository>
|
|
<id>jitpack.io</id>
|
|
<url>https://jitpack.io</url>
|
|
</repository>
|
|
<!-- <repository>
|
|
<id>vault-repo</id>
|
|
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
|
|
</repository> -->
|
|
<repository>
|
|
<id>Essentials</id>
|
|
<url>https://ci.ender.zone/plugin/repository/everything/</url>
|
|
</repository>
|
|
<repository>
|
|
<id>projectlombok.org</id>
|
|
<url>http://projectlombok.org/mavenrepo</url>
|
|
</repository>
|
|
<!-- <repository>
|
|
<id>pex-repo</id>
|
|
<url>http://pex-repo.aoeu.xyz</url>
|
|
</repository> -->
|
|
<!-- <repository>
|
|
<id>Reactor-Tools</id>
|
|
<url>https://repo.spring.io/milestone</url>
|
|
</repository> -->
|
|
<repository>
|
|
<id>papermc</id>
|
|
<url>https://papermc.io/repo/repository/maven-public/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>3.8.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot-api</artifactId>
|
|
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot</artifactId>
|
|
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.spigotmc.</groupId>
|
|
<artifactId>spigot</artifactId>
|
|
<version>1.14.4-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency> <!-- From patched_1.16.3.jar -->
|
|
<groupId>com.destroystokyo.paper</groupId>
|
|
<artifactId>paper</artifactId>
|
|
<version>1.16.3-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/com.discord4j/Discord4J -->
|
|
<dependency>
|
|
<groupId>com.discord4j</groupId>
|
|
<artifactId>discord4j-core</artifactId>
|
|
<version>3.1.1</version>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14 -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-jdk14</artifactId>
|
|
<version>1.7.21</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.TBMCPlugins.ChromaCore</groupId>
|
|
<artifactId>Chroma-Core</artifactId>
|
|
<version>${branch}-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.ess3</groupId>
|
|
<artifactId>EssentialsX</artifactId>
|
|
<version>2.17.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.10</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- <dependency>
|
|
<groupId>ru.tehkode</groupId>
|
|
<artifactId>PermissionsEx</artifactId>
|
|
<version>1.23.1</version>
|
|
<scope>provided</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.bukkit</groupId>
|
|
<artifactId>bukkit</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency> -->
|
|
<dependency>
|
|
<groupId>com.vdurmont</groupId>
|
|
<artifactId>emoji-java</artifactId>
|
|
<version>4.0.0</version>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/io.projectreactor.tools/blockhound -->
|
|
<!-- <dependency>
|
|
<groupId>io.projectreactor.tools</groupId>
|
|
<artifactId>blockhound</artifactId>
|
|
<version>1.0.0.M3</version>
|
|
</dependency> -->
|
|
<dependency>
|
|
<groupId>com.github.lucko</groupId>
|
|
<artifactId>LuckPerms</artifactId>
|
|
<version>master-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>3.5.13</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>ci</id>
|
|
<activation>
|
|
<property>
|
|
<name>env.TRAVIS_BRANCH</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<!-- Override only if necessary -->
|
|
<branch>${env.TRAVIS_BRANCH}</branch>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|