This also swaps out the dependency on mockito-all with mockito-core, which is actually maintained. The purpose of updating is to allow for new Mockito features, such as mocking final methods, which happens due to the test resource org.mockito.plugins.MockMaker.
104 lines
2.8 KiB
XML
104 lines
2.8 KiB
XML
<?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>com.garbagemule</groupId>
|
|
<artifactId>mobarena</artifactId>
|
|
<name>MobArena</name>
|
|
<version>0.100.2-SNAPSHOT</version>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Use Java 8 for compilation -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.3</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Rename the final jar-file to MobArena.jar -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<finalName>MobArena</finalName>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<resources>
|
|
<!-- Resource filtering; use Maven version in plugin.yml -->
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
</build>
|
|
|
|
<repositories>
|
|
<!-- Spigot repo -->
|
|
<repository>
|
|
<id>spigot-repo</id>
|
|
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
|
|
</repository>
|
|
|
|
<!-- Vault repo -->
|
|
<repository>
|
|
<id>vault-repo</id>
|
|
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<!-- Spigot-Bukkit API -->
|
|
<dependency>
|
|
<groupId>org.bukkit</groupId>
|
|
<artifactId>bukkit</artifactId>
|
|
<version>1.11-R0.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<!-- Vault -->
|
|
<dependency>
|
|
<groupId>net.milkbowl.vault</groupId>
|
|
<artifactId>VaultAPI</artifactId>
|
|
<version>1.5</version>
|
|
</dependency>
|
|
|
|
<!-- Magic Spells (tentative) -->
|
|
<dependency>
|
|
<groupId>com.nisovin</groupId>
|
|
<artifactId>magicspells</artifactId>
|
|
<version>1.0</version>
|
|
<scope>system</scope>
|
|
<systemPath>${project.basedir}/lib/MagicSpells.jar</systemPath>
|
|
</dependency>
|
|
|
|
<!-- JUnit -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.12</version>
|
|
</dependency>
|
|
|
|
<!-- Hamcrest matchers -->
|
|
<dependency>
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest-all</artifactId>
|
|
<version>1.3</version>
|
|
</dependency>
|
|
|
|
<!-- Mockito -->
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>2.18.3</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</project> |