mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-25 12:05:11 +01:00
4438c36b61
* Init 1.2.0 version * Fixes #311 localization errors in zn-CN. Original translation author translated `[]` placeholders which broke locale * Init 1.2.0 version * Edit some unfit translation (#312) Edit some unfit translation * Fixes a regex bug that replaced every [player] char instead of whole word. * Fixes a crash that prevented STATISTICS entity and material/item challenges to be completed. * Add requirement-not-met-material and requirement-not-met-entity to display statistic required item on error. * Add locale of Chinese-Hong Kong (zh-HK) (#313) Addition of locale updated to latest version * Add ${argLine} to get jacoco coverage * Updated Jacoco POM section * Update build.yml Java 17 for Surefire * Updated pladdon annotations * Add support for gamemode-specific translations. This was a request from Floris * Update ChallengesManagerTest methods with world parameter. * Implement option that excludes undeployed challenges The new option allows to toggle if undeployed challenges should be included in level completion count. Disabling option will not include these challenges for level completion. Fixes #315 * Create plugin.yml (#316) * Create plugin.yml * Update pom.xml * Update ChallengesPladdon.java * Remove dependency to org.apache.commons Replace org.apache.commons.lang.ArrayUtils to a default Java implementation. * Fixes a crash with written/writable books. The issue was with generating description message for written books without title or author. Fixes #318 * Fixed TryToComplete test class * Fixed CompleteChallengeCommandTest * Fixed ChallengesCommandTest * Fixed ChallengesManagerTest * Update Github Action build script * Add required distribution * Fixes the admin GUI crash. Add shade plugin that was missing for dependencies. * Update Hungarian translation (#301) * Translate hu.yml via GitLocalize * Translate hu.yml via GitLocalize * Translate hu.yml via GitLocalize * Translate hu.yml via GitLocalize * Update hu.yml Fix color codes and placeholders --------- Co-authored-by: driverdakid <tamascsiszar99@icloud.com> Co-authored-by: mt-gitlocalize <mt@gitlocalize.com> Co-authored-by: BONNe <bonne@bonne.id.lv> Co-authored-by: slimcraft <davidelek12@gmail.com> Co-authored-by: tastybento <tastybento@users.noreply.github.com> * Update POM versions to use latest API * Remove duplicate plugin reference in POM * Try adding maven dependency to fix test issue * Remove offending test. Was not that useful anyway. * Update Jacoco * Update pom.xml * Update to BentoBox 2.0.0 Had to ignore some tests because PowerMockito can't mock them for some reason. * Add Ukrainian locale (#326) * Translate uk.yml via GitLocalize * Translate uk.yml via GitLocalize --------- Co-authored-by: mt-gitlocalize <mt@gitlocalize.com> Co-authored-by: GIGABAIT <freebitcoin93@gmail.com> * Translate uk.yml via GitLocalize (#325) Co-authored-by: GIGABAIT <freebitcoin93@gmail.com> Co-authored-by: tastybento <tastybento@users.noreply.github.com> * Show money as formatted. Addresses #324 * Update README.md * Update README.md * Fixes enchanted book meta not displayed (#328) Apparently in Spigot EnchantmentStorage has a map that is not used for enchantment storing. Nice. Fixes #327 * Upgrade PanelUtils to 1.2.0 * Fixes crash when player in CREATIVE shift+clicks on INVENTORY challenge. Limit completion time to 2, if player is in creative instead of Integer.MAX_VALUE Fixes #330 * Fix tests for creative user inventory challenge completion * Update TIPPED_ARROW to latest API in panels * Update en-US.yml * Reference latest BentoBox release version * Chinese translation (#343) * Translate zh-CN.yml via GitLocalize * Translate zh-CN.yml via GitLocalize * Translate zh-CN.yml via GitLocalize * Translate zh-CN.yml via GitLocalize * Translate zh-CN.yml via GitLocalize --------- Co-authored-by: Jeansou <bettertreebot@gmail.com> Co-authored-by: CuteLittleSky <2173204318@qq.com> Co-authored-by: RUYSUE <ruysue@outlook.com> Co-authored-by: Clexus <528373858@qq.com> Co-authored-by: mt-gitlocalize <mt@gitlocalize.com> * French translation (#342) * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize --------- Co-authored-by: Aksel <afgameytb@gmail.com> Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com> Co-authored-by: mt-gitlocalize <mt@gitlocalize.com> * Spanish translation (#341) * Translate es.yml via GitLocalize * Translate es.yml via GitLocalize * Translate es.yml via GitLocalize --------- Co-authored-by: sergyops <lince885@gmail.com> Co-authored-by: mt-gitlocalize <mt@gitlocalize.com> Co-authored-by: Amfetas <artodetodoo@gmail.com> * Fixes 345 (#346) Use the object's name if it already has a display name * return the pladdon that was generated. * Version 1.3.1 * Translate zh-CN.yml via GitLocalize (#348) Co-authored-by: RUYSUE <ruysue@outlook.com> * French translation (#347) * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize --------- Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: Aksel <afgameytb@gmail.com> Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com> Co-authored-by: mt-gitlocalize <mt@gitlocalize.com> --------- Co-authored-by: BONNe <bonne@bonne.id.lv> Co-authored-by: EpicMo <1982742309@qq.com> Co-authored-by: JamesMCL44 <epicquarters@gmail.com> Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: driverdakid <tamascsiszar99@icloud.com> Co-authored-by: mt-gitlocalize <mt@gitlocalize.com> Co-authored-by: slimcraft <davidelek12@gmail.com> Co-authored-by: GIGABAIT <freebitcoin93@gmail.com> Co-authored-by: Jeansou <bettertreebot@gmail.com> Co-authored-by: CuteLittleSky <2173204318@qq.com> Co-authored-by: RUYSUE <ruysue@outlook.com> Co-authored-by: Clexus <528373858@qq.com> Co-authored-by: Aksel <afgameytb@gmail.com> Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com> Co-authored-by: sergyops <lince885@gmail.com> Co-authored-by: Amfetas <artodetodoo@gmail.com>
407 lines
16 KiB
XML
407 lines
16 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>world.bentobox</groupId>
|
|
<artifactId>challenges</artifactId>
|
|
<version>${revision}</version>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<ciManagement>
|
|
<system>jenkins</system>
|
|
<url>http://ci.codemc.org/job/BentoBoxWorld/job/Challenges</url>
|
|
</ciManagement>
|
|
|
|
<issueManagement>
|
|
<system>GitHub</system>
|
|
<url>https://github.com/BentoBoxWorld/Challenges/issues</url>
|
|
</issueManagement>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<java.version>17</java.version>
|
|
<powermock.version>2.0.9</powermock.version>
|
|
<!-- More visible way how to change dependency versions -->
|
|
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
|
|
<spigot-annotations.version>1.2.3-SNAPSHOT</spigot-annotations.version>
|
|
<bentobox.version>2.1.0</bentobox.version>
|
|
<level.version>2.6.3</level.version>
|
|
<vault.version>1.7</vault.version>
|
|
<panelutils.version>1.2.0</panelutils.version>
|
|
<!-- Revision variable removes warning about dynamic version -->
|
|
<revision>${build.version}-SNAPSHOT</revision>
|
|
<!-- This allows to change between versions and snapshots. -->
|
|
<build.version>1.3.1</build.version>
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>apache.snapshots</id>
|
|
<url>https://repository.apache.org/snapshots/</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<repositories>
|
|
<!-- Spigot Repo -->
|
|
<repository>
|
|
<id>spigot-repo</id>
|
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url>
|
|
</repository>
|
|
<!-- CodeMC Repo for BentoBox -->
|
|
<repository>
|
|
<id>codemc-repo</id>
|
|
<url>https://repo.codemc.io/repository/maven-public</url>
|
|
</repository>
|
|
<!-- Minecraft Lib Repo -->
|
|
<repository>
|
|
<id>minecraft-repo</id>
|
|
<url>https://libraries.minecraft.net/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<!-- This is required for PowerMockito to work and must be placed before it -->
|
|
<dependency>
|
|
<groupId>org.javassist</groupId>
|
|
<artifactId>javassist</artifactId>
|
|
<version>3.30.2-GA</version>
|
|
</dependency>
|
|
<!-- Spigot API -->
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot-api</artifactId>
|
|
<version>${spigot.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Vault API -->
|
|
<dependency>
|
|
<groupId>net.milkbowl.vault</groupId>
|
|
<artifactId>VaultAPI</artifactId>
|
|
<version>${vault.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- BentoBox dependencies. -->
|
|
<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>
|
|
<!-- Annotations -->
|
|
<dependency>
|
|
<groupId>org.jetbrains</groupId>
|
|
<artifactId>annotations</artifactId>
|
|
<version>22.0.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Mockito (Unit testing) -->
|
|
<dependency>
|
|
<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>
|
|
</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>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!-- By default ${revision} is ${build.version}-SNAPSHOT -->
|
|
<!-- If GIT_BRANCH variable is set to origin/master, then it will
|
|
be only ${build.version}. -->
|
|
|
|
<!-- 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>
|
|
|
|
<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>
|
|
<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>
|
|
<version>3.7.0</version>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
<release>${java.version}</release>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.0.0-M5</version>
|
|
<configuration>
|
|
<argLine>
|
|
${argLine}
|
|
--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
|
|
</argLine>
|
|
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>3.1.1</version>
|
|
<configuration>
|
|
<show>public</show>
|
|
<failOnError>false</failOnError>
|
|
<additionalJOption>-Xdoclint:none</additionalJOption>
|
|
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
|
|
</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>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>0.8.10</version>
|
|
<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>
|
|
<!-- Prevents the Material is too large to mock error -->
|
|
<exclude>org/bukkit/Material*</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>prepare-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>report</id>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
<configuration>
|
|
<formats>
|
|
<format>XML</format>
|
|
</formats>
|
|
</configuration>
|
|
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|