mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 13:36:06 +01:00
Switch to annotations instead of plugin.yml file.
This commit is contained in:
parent
834078e99f
commit
7c2be91be9
8
pom.xml
8
pom.xml
@ -36,13 +36,14 @@
|
|||||||
<powermock.version>2.0.9</powermock.version>
|
<powermock.version>2.0.9</powermock.version>
|
||||||
<!-- More visible way how to change dependency versions -->
|
<!-- More visible way how to change dependency versions -->
|
||||||
<spigot.version>1.17-R0.1-SNAPSHOT</spigot.version>
|
<spigot.version>1.17-R0.1-SNAPSHOT</spigot.version>
|
||||||
|
<spigot-annotations.version>1.2.3-SNAPSHOT</spigot-annotations.version>
|
||||||
<bentobox.version>1.17.0</bentobox.version>
|
<bentobox.version>1.17.0</bentobox.version>
|
||||||
<level.version>2.6.3</level.version>
|
<level.version>2.6.3</level.version>
|
||||||
<vault.version>1.7</vault.version>
|
<vault.version>1.7</vault.version>
|
||||||
<!-- Revision variable removes warning about dynamic version -->
|
<!-- Revision variable removes warning about dynamic version -->
|
||||||
<revision>${build.version}-SNAPSHOT</revision>
|
<revision>${build.version}-SNAPSHOT</revision>
|
||||||
<!-- This allows to change between versions and snapshots. -->
|
<!-- This allows to change between versions and snapshots. -->
|
||||||
<build.version>0.9.0</build.version>
|
<build.version>1.0.0</build.version>
|
||||||
<build.number>-LOCAL</build.number>
|
<build.number>-LOCAL</build.number>
|
||||||
<!-- Sonar Cloud -->
|
<!-- Sonar Cloud -->
|
||||||
<sonar.projectKey>BentoBoxWorld_Challenges</sonar.projectKey>
|
<sonar.projectKey>BentoBoxWorld_Challenges</sonar.projectKey>
|
||||||
@ -135,9 +136,8 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot</artifactId>
|
<artifactId>plugin-annotations</artifactId>
|
||||||
<version>${spigot.version}</version>
|
<version>${spigot-annotations.version}</version>
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Mockito (Unit testing) -->
|
<!-- Mockito (Unit testing) -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -7,12 +7,19 @@
|
|||||||
package world.bentobox.challenges;
|
package world.bentobox.challenges;
|
||||||
|
|
||||||
|
|
||||||
|
import org.bukkit.plugin.java.annotation.dependency.Dependency;
|
||||||
|
import org.bukkit.plugin.java.annotation.plugin.ApiVersion;
|
||||||
|
import org.bukkit.plugin.java.annotation.plugin.Plugin;
|
||||||
|
|
||||||
import world.bentobox.bentobox.api.addons.Addon;
|
import world.bentobox.bentobox.api.addons.Addon;
|
||||||
import world.bentobox.bentobox.api.addons.Pladdon;
|
import world.bentobox.bentobox.api.addons.Pladdon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author tastybento
|
* @author tastybento
|
||||||
*/
|
*/
|
||||||
|
@Plugin(name="Pladdon", version="1.0")
|
||||||
|
@ApiVersion(ApiVersion.Target.v1_17)
|
||||||
|
@Dependency(value = "BentoBox")
|
||||||
public class ChallengesPladdon extends Pladdon
|
public class ChallengesPladdon extends Pladdon
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
name: Pladdon
|
|
||||||
main: world.bentobox.challenges.ChallengesPladdon
|
|
||||||
version: ${version}
|
|
||||||
api-version: 1.17
|
|
||||||
description: Challenges Addon
|
|
||||||
authors:
|
|
||||||
- tastybento
|
|
||||||
- BONNe
|
|
||||||
depend:
|
|
||||||
- BentoBox
|
|
Loading…
Reference in New Issue
Block a user