addon-challenges/pom.xml

398 lines
16 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>17</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 -->
2023-07-08 19:50:47 +02:00
<spigot.version>1.20.1-R0.1-SNAPSHOT</spigot.version>
<spigot-annotations.version>1.2.3-SNAPSHOT</spigot-annotations.version>
2023-07-08 19:50:47 +02:00
<bentobox.version>1.24.0</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>
<panelutils.version>1.1.0</panelutils.version>
2021-03-07 19:40:34 +01:00
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>1.3.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
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>https://repository.apache.org/snapshots/</url>
</pluginRepository>
</pluginRepositories>
2021-03-07 19:40:34 +01:00
<repositories>
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
<!-- 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
<!-- 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>
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>
<!-- 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>
<!-- PanelUtils -->
<dependency>
<groupId>lv.id.bonne</groupId>
<artifactId>panelutils</artifactId>
<version>${panelutils.version}</version>
<scope>compile</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>22.0.0</version>
<scope>provided</scope>
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>
<!-- Mojang Auth -->
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.6.1</version>
</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-shade-plugin</artifactId>
<version>3.3.1-SNAPSHOT</version>
<configuration>
<minimizeJar>true</minimizeJar>
<artifactSet>
<includes>
<include>lv.id.bonne:panelutils:*</include>
</includes>
</artifactSet>
<transformers>
<!-- Add a transformer to exclude any other manifest files (possibly from dependencies). -->
<transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resource>MANIFEST.MF</resource>
</transformer>
<!-- Add a transformer to include your custom manifest file. -->
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
<resource>META-INF/MANIFEST.MF</resource>
<file>src/main/resources/META-INF/MANIFEST.MF</file>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
2021-03-07 19:40:34 +01:00
<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>
<source>${java.version}</source>
<target>${java.version}</target>
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>
2023-02-10 00:14:35 +01:00
${argLine}
2021-09-24 04:39:33 +02:00
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.math=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens
java.base/java.util.stream=ALL-UNNAMED
--add-opens java.base/java.text=ALL-UNNAMED
--add-opens
java.base/java.util.regex=ALL-UNNAMED
--add-opens
java.base/java.nio.channels.spi=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens
java.base/java.util.concurrent=ALL-UNNAMED
--add-opens java.base/sun.nio.fs=ALL-UNNAMED
--add-opens java.base/sun.nio.cs=ALL-UNNAMED
--add-opens java.base/java.nio.file=ALL-UNNAMED
--add-opens
java.base/java.nio.charset=ALL-UNNAMED
--add-opens
java.base/java.lang.reflect=ALL-UNNAMED
--add-opens
java.logging/java.util.logging=ALL-UNNAMED
--add-opens java.base/java.lang.ref=ALL-UNNAMED
--add-opens java.base/java.util.jar=ALL-UNNAMED
--add-opens java.base/java.util.zip=ALL-UNNAMED
2021-06-27 20:10:49 +02:00
</argLine>
2021-09-24 04:39:33 +02:00
2021-06-27 20:10:49 +02:00
</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>
<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-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>
2023-02-10 19:50:41 +01:00
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<configuration>
2023-02-10 19:50:41 +01:00
<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>
</configuration>
<executions>
<execution>
2023-02-10 19:50:41 +01:00
<id>prepare-agent</id>
<goals>
2023-02-10 19:50:41 +01:00
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
2023-02-10 19:50:41 +01:00
<configuration>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
2021-03-07 19:40:34 +01:00
</plugins>
</build>
2019-02-13 15:49:01 +01:00
</project>