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>
|
||||
<!-- 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>
|
||||
<bentobox.version>1.17.0</bentobox.version>
|
||||
<level.version>2.6.3</level.version>
|
||||
<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>0.9.0</build.version>
|
||||
<build.version>1.0.0</build.version>
|
||||
<build.number>-LOCAL</build.number>
|
||||
<!-- Sonar Cloud -->
|
||||
<sonar.projectKey>BentoBoxWorld_Challenges</sonar.projectKey>
|
||||
@ -135,9 +136,8 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot</artifactId>
|
||||
<version>${spigot.version}</version>
|
||||
<scope>provided</scope>
|
||||
<artifactId>plugin-annotations</artifactId>
|
||||
<version>${spigot-annotations.version}</version>
|
||||
</dependency>
|
||||
<!-- Mockito (Unit testing) -->
|
||||
<dependency>
|
||||
|
@ -7,12 +7,19 @@
|
||||
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.Pladdon;
|
||||
|
||||
/**
|
||||
* @author tastybento
|
||||
*/
|
||||
@Plugin(name="Pladdon", version="1.0")
|
||||
@ApiVersion(ApiVersion.Target.v1_17)
|
||||
@Dependency(value = "BentoBox")
|
||||
public class ChallengesPladdon extends Pladdon
|
||||
{
|
||||
@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