addon-challenges/pom.xml

356 lines
13 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
2018-04-15 07:30:04 +02:00
<project xmlns="http://maven.apache.org/POM/4.0.0"
2021-03-07 19:40:34 +01:00
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>
2021-03-07 19:40:34 +01:00
<groupId>world.bentobox</groupId>
<artifactId>challenges</artifactId>
<version>${revision}</version>
2021-03-07 19:40:34 +01:00
<name>Challenges</name>
<description>Challenges is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like SkyBlock, AcidIsland or CaveBlock.</description>
<url>https://github.com/BentoBoxWorld/Challenges</url>
<inceptionYear>2018</inceptionYear>
2021-03-07 19:40:34 +01:00
<scm>
<connection>scm:git:https://github.com/BentoBoxWorld/Challenges.git</connection>
<developerConnection>scm:git:git@github.com:BentoBoxWorld/Challenges.git</developerConnection>
<url>https://github.com/BentoBoxWorld/Challenges</url>
</scm>
2021-03-07 19:40:34 +01:00
<ciManagement>
<system>jenkins</system>
<url>http://ci.codemc.org/job/BentoBoxWorld/job/Challenges</url>
</ciManagement>
2018-12-30 14:46:04 +01:00
2021-03-07 19:40:34 +01:00
<issueManagement>
<system>GitHub</system>
<url>https://github.com/BentoBoxWorld/Challenges/issues</url>
</issueManagement>
2021-03-07 19:40:34 +01:00
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>16</java.version>
2021-06-27 20:10:49 +02:00
<powermock.version>2.0.9</powermock.version>
2021-03-07 19:40:34 +01:00
<!-- More visible way how to change dependency versions -->
<spigot.version>1.17-R0.1-SNAPSHOT</spigot.version>
<spigot-annotations.version>1.2.3-SNAPSHOT</spigot-annotations.version>
2021-09-18 12:04:14 +02:00
<bentobox.version>1.17.3-SNAPSHOT</bentobox.version>
2021-06-27 20:10:49 +02:00
<level.version>2.6.3</level.version>
2021-03-07 19:40:34 +01:00
<vault.version>1.7</vault.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>1.0.0</build.version>
2021-03-07 19:40:34 +01:00
<build.number>-LOCAL</build.number>
<!-- Sonar Cloud -->
<sonar.projectKey>BentoBoxWorld_Challenges</sonar.projectKey>
<sonar.organization>bentobox-world</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>
2017-11-26 03:17:16 +01:00
2021-03-07 19:40:34 +01:00
<profiles>
<profile>
<id>ci</id>
<activation>
<property>
<name>env.BUILD_NUMBER</name>
</property>
</activation>
<properties>
<!-- Override only if necessary -->
<build.number>-b${env.BUILD_NUMBER}</build.number>
<!-- GIT_BRANCH -->
</properties>
</profile>
<profile>
<id>master</id>
<activation>
<property>
<name>env.GIT_BRANCH</name>
<value>origin/master</value>
</property>
</activation>
<properties>
<!-- Override only if necessary -->
<revision>${build.version}</revision>
<!-- Empties build number variable. -->
<build.number></build.number>
</properties>
</profile>
</profiles>
2021-03-07 19:40:34 +01:00
<distributionManagement>
<snapshotRepository>
<id>codemc-snapshots</id>
<url>https://repo.codemc.org/repository/maven-snapshots</url>
</snapshotRepository>
<repository>
<id>codemc-releases</id>
<url>https://repo.codemc.org/repository/maven-releases</url>
</repository>
</distributionManagement>
2018-12-30 14:46:04 +01:00
2021-03-07 19:40:34 +01:00
<repositories>
2021-06-27 20:10:49 +02:00
<repository>
2021-09-18 12:04:14 +02:00
<!-- This is a temporary reference as the Maven Shade plugin
that supports Java 16 is not released yet -->
2021-06-27 20:10:49 +02:00
<id>maven-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</repository>
2021-09-18 12:04:14 +02:00
<!-- Spigot Repo -->
2021-03-07 19:40:34 +01:00
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url>
</repository>
2021-09-18 12:04:14 +02:00
<!-- CodeMC Repo for BentoBox -->
2021-03-07 19:40:34 +01:00
<repository>
<id>codemc-repo</id>
2021-09-18 12:04:14 +02:00
<url>https://repo.codemc.io/repository/maven-public</url>
2021-03-07 19:40:34 +01:00
</repository>
2021-09-18 12:04:14 +02:00
<!-- Vault Repo -->
2021-03-07 19:40:34 +01:00
<repository>
<id>vault-repo</id>
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>
2021-09-18 12:04:14 +02:00
<!-- Minecraft Lib Repo -->
2021-03-07 19:40:34 +01:00
<repository>
2021-09-18 12:04:14 +02:00
<id>minecraft-repo</id>
<url>https://libraries.minecraft.net/</url>
2021-03-07 19:40:34 +01:00
</repository>
</repositories>
2021-03-07 19:40:34 +01:00
<dependencies>
2021-08-14 20:48:20 +02:00
<!-- Mojang Auth-->
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.21</version>
<scope>provided</scope>
</dependency>
<!-- Spigot API -->
2021-03-07 19:40:34 +01:00
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>${spigot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
2021-09-18 12:04:14 +02:00
<artifactId>spigot</artifactId>
<version>${spigot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
2021-09-18 12:04:14 +02:00
<groupId>org.spigotmc</groupId>
<artifactId>plugin-annotations</artifactId>
<version>1.2.3-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
2021-09-18 12:04:14 +02:00
<!-- Vault API -->
<dependency>
2021-09-18 12:04:14 +02:00
<groupId>net.milkbowl.vault</groupId>
<artifactId>VaultAPI</artifactId>
<version>${vault.version}</version>
<scope>provided</scope>
</dependency>
2021-09-18 12:04:14 +02:00
<!-- BentoBox dependencies. -->
2021-03-07 19:40:34 +01:00
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>
<version>${bentobox.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>level</artifactId>
<version>${level.version}</version>
<scope>provided</scope>
</dependency>
2021-09-18 12:04:14 +02:00
<!-- Annotations -->
2021-03-07 19:40:34 +01:00
<dependency>
2021-09-18 12:04:14 +02:00
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>21.0.1</version>
2021-03-07 19:40:34 +01:00
</dependency>
2021-09-18 12:04:14 +02:00
<!-- Mockito (Unit testing) -->
2021-06-28 02:26:16 +02:00
<dependency>
2021-09-18 12:04:14 +02:00
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.11.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
2021-06-28 02:26:16 +02:00
</dependency>
2021-03-07 19:40:34 +01:00
</dependencies>
2021-03-07 19:40:34 +01:00
<build>
<!-- By default ${revision} is ${build.version}-SNAPSHOT -->
<!-- If GIT_BRANCH variable is set to origin/master, then it will
be only ${build.version}. -->
2021-03-07 19:40:34 +01:00
<!-- By default ${build.number} is -LOCAL. -->
<!-- If the BUILD_NUMBER variable is set, then it will be -b[number]. -->
<!-- If GIT_BRANCH variable is set to origin/master, then it will
be the empty string. -->
<finalName>${project.name}-${revision}${build.number}</finalName>
2021-03-07 19:40:34 +01:00
<defaultGoal>clean package</defaultGoal>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources/locales</directory>
<targetPath>./locales</targetPath>
<filtering>false</filtering>
<includes>
<include>*.yml</include>
<include>*.json</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
2021-06-27 20:10:49 +02:00
<version>3.7.0</version>
2021-03-07 19:40:34 +01:00
<configuration>
2021-06-27 20:10:49 +02:00
<release>${java.version}</release>
2021-03-07 19:40:34 +01:00
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
2021-06-27 20:10:49 +02:00
<version>3.0.0-M5</version>
<configuration>
<argLine>
--illegal-access=permit
</argLine>
</configuration>
2021-03-07 19:40:34 +01:00
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
2021-03-07 19:40:34 +01:00
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
2021-03-07 19:40:34 +01:00
<configuration>
<source>8</source>
2021-03-07 19:40:34 +01:00
<show>public</show>
<failOnError>false</failOnError>
<additionalJOption>-Xdoclint:none</additionalJOption>
2021-06-27 20:10:49 +02:00
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
2021-03-07 19:40:34 +01:00
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
2021-06-27 20:10:49 +02:00
<version>3.3.0-SNAPSHOT</version>
2021-03-07 19:40:34 +01:00
<configuration>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>io.github.TheBusyBiscuit.GitHubWebAPI4Java</pattern>
<shadedPattern>world.bentobox.bentobox.api.github</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-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.4</version>
2021-03-07 19:40:34 +01:00
<configuration>
<append>true</append>
<excludes>
<!-- This is required to prevent Jacoco from adding
synthetic fields to a JavaBean class (causes errors in testing) -->
<exclude>**/*Names*</exclude>
</excludes>
2021-03-07 19:40:34 +01:00
</configuration>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2019-02-13 15:49:01 +01:00
</project>