Add spigot-plugin-annotations dependency.

This commit is contained in:
BONNe 2022-01-28 12:52:08 +02:00
parent 7caa688aa0
commit 18e4694129
3 changed files with 15 additions and 9 deletions

View File

@ -46,7 +46,7 @@
<java.version>16</java.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.18.1-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.18.0-SNAPSHOT</bentobox.version>
<bentobox.version>1.19.0</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
@ -114,6 +114,12 @@
<version>${spigot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>plugin-annotations</artifactId>
<version>1.2.3-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>

View File

@ -1,8 +1,16 @@
package world.bentobox.caveblock;
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;
@Plugin(name = "Pladdon", version = "1.0")
@ApiVersion(ApiVersion.Target.v1_18)
@Dependency(value = "BentoBox")
public class CaveBlockPladdon extends Pladdon {
@Override

View File

@ -1,8 +0,0 @@
name: Pladdon
main: world.bentobox.caveblock.CaveBlockPladdon
version: ${version}
api-version: 1.17
description: A CaveBlock Plugin
author: tastybento
depend:
- BentoBox