e906ddfdb3
- Switched to Maven for project compilation. - Added config options to globally bypass permissions for crafting and/or wearing of all tiers. - Now using Consumer for stuff that previously used the ugly is1_9 boolean. - Switched to using ArmorEquipEvent for checking if players are allowed to wear something. It's much cleaner and includes some previously omitted equip events (such as from a dispenser). - Code cleanup. - Fixed issue where unbreakable armored elytras would still "break". - Added MENDING enchantment to the default set of enchantments again. - Using Maven shade for bStats and removed the old Metrics class.
137 lines
4.7 KiB
XML
137 lines
4.7 KiB
XML
<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>nl.pim16aap2</groupId>
|
|
<artifactId>ArmoredElytra</artifactId>
|
|
<version>2.4.10</version>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spigot-repo</id>
|
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
</repository>
|
|
<repository>
|
|
<id>CodeMC</id>
|
|
<url>https://repo.codemc.org/repository/maven-public</url>
|
|
</repository>
|
|
<repository>
|
|
<id>jitpack.io</id>
|
|
<url>https://jitpack.io</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot</artifactId>
|
|
<version>1.14.2-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.tr7zw</groupId>
|
|
<artifactId>Item-NBT-API</artifactId>
|
|
<version>master-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!--bStats -->
|
|
<dependency>
|
|
<groupId>org.bstats</groupId>
|
|
<artifactId>bstats-bukkit</artifactId>
|
|
<version>1.5</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!--
|
|
<dependency>
|
|
<groupId>com.github.Arnuh</groupId>
|
|
<artifactId>ArmorEquipEvent</artifactId>
|
|
<version>39fadc1393</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
-->
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.name}</finalName>
|
|
<sourceDirectory>src</sourceDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src</directory>
|
|
<excludes>
|
|
<exclude>**/*.java</exclude>
|
|
</excludes>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>plugin.yml</include>
|
|
<include>config.yml</include>
|
|
<include>en_US.txt</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.2.1</version>
|
|
<configuration>
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>org.bstats</pattern>
|
|
<shadedPattern>nl.pim16aap2.armoredElytra</shadedPattern>
|
|
</relocation>
|
|
<!--<relocation>
|
|
<pattern>com.codingforcookies</pattern>
|
|
<shadedPattern>nl.pim16aap2.armoredElytra</shadedPattern>
|
|
</relocation>-->
|
|
</relocations>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>8</source>
|
|
<target>8</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>deploy-artifact</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<ant antfile="${basedir}/mover.xml">
|
|
<target name="copyAll" />
|
|
</ant>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|