summaryrefslogtreewikicommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml117
1 files changed, 68 insertions, 49 deletions
diff --git a/pom.xml b/pom.xml
index cb6097e..e6ff5de 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,71 +3,84 @@
<artifactId>KenshinsHideAndSeek</artifactId>
<version>1.6.0</version>
<name>Hide and Seek Plugin</name>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
+
<build>
+ <defaultGoal>clean install</defaultGoal>
+ <sourceDirectory>src/main/java</sourceDirectory>
+
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>8</source>
- <target>8</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
- <configuration>
- <createDependencyReducedPom>false</createDependencyReducedPom>
- <relocations>
- <relocation>
- <pattern>com.cryptomorin.xseries</pattern>
- <shadedPattern>net.tylermurphy.dependencies.xseries</shadedPattern>
- </relocation>
- </relocations>
- <artifactSet>
- <includes>
- <include>com.github.cryptomorin:XSeries</include>
- <include>org.xerial:sqlite-jdbc</include>
- <include>org.mariadb.jdbc:mariadb-java-client</include>
- <include>com.zaxxer:HikariCP</include>
- </includes>
- </artifactSet>
- <filters>
- <filter>
- <artifact>*:*</artifact>
- <excludes>
- <exclude>META-INF/*.MF</exclude>
- <exclude>META-INF/*.MD</exclude>
- <exclude>META-INF/*.SF</exclude>
- <exclude>META-INF/*.DSA</exclude>
- <exclude>META-INF/*.RSA</exclude>
- <exclude>sqlite-jdbc.properties</exclude>
- </excludes>
- </filter>
- </filters>
- <transformers>
- <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
- <resource>META-INF/services/java.sql.Driver</resource>
- </transformer>
- </transformers>
- <minimizeJar>true</minimizeJar>
- </configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
+ <configuration>
+ <createDependencyReducedPom>false</createDependencyReducedPom>
+ <relocations>
+ <relocation>
+ <pattern>com.cryptomorin.xseries</pattern>
+ <shadedPattern>net.tylermurphy.dependencies.xseries</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>com.zaxxer.hikari</pattern>
+ <shadedPattern>net.tylermurphy.dependencies.hikari</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.ibex.nestedvm</pattern>
+ <shadedPattern>net.tylermurphy.dependencies.nestedvm</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.sqlite</pattern>
+ <shadedPattern>net.tylermurphy.dependencies.sqlite</shadedPattern>
+ </relocation>
+ </relocations>
+ <artifactSet>
+ <includes>
+ <include>com.github.cryptomorin:XSeries</include>
+ <include>org.xerial:sqlite-jdbc</include>
+ <include>org.mariadb.jdbc:mariadb-java-client</include>
+ <include>com.zaxxer:HikariCP</include>
+ </includes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ <exclude>sqlite-jdbc.properties</exclude>
+ <exclude>mariadb.properties</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+ <resource>META-INF/services/java.sql.Driver</resource>
+ </transformer>
+ </transformers>
+ <minimizeJar>true</minimizeJar>
+ </configuration>
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.8</source>
+ <target>1.8</target>
+ </configuration>
+ </plugin>
+
</plugins>
+
</build>
+
<repositories>
<repository>
<id>spigot-repo</id>
@@ -87,8 +100,14 @@
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
- <type>jar</type>
<scope>provided</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ <type>jar</type>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>