From 4494cdc09912bb2262f527f79d4452ef0c9a23b6 Mon Sep 17 00:00:00 2001 From: BONNe Date: Sat, 8 Apr 2023 18:53:11 +0300 Subject: [PATCH] PluginAnnotations does not allow setting version dynamically from Maven. Return to a file format. (#117) * Create plugin.yml * Update pom.xml * Update BiomesPladdon.java --- pom.xml | 6 ------ src/main/java/world/bentobox/biomes/BiomesPladdon.java | 8 -------- src/main/resources/plugin.yml | 9 +++++++++ 3 files changed, 9 insertions(+), 14 deletions(-) create mode 100644 src/main/resources/plugin.yml diff --git a/pom.xml b/pom.xml index e63b56f..fc717f3 100644 --- a/pom.xml +++ b/pom.xml @@ -154,12 +154,6 @@ ${spigot.version} provided - - org.spigotmc - plugin-annotations - 1.2.3-SNAPSHOT - provided - world.bentobox bentobox diff --git a/src/main/java/world/bentobox/biomes/BiomesPladdon.java b/src/main/java/world/bentobox/biomes/BiomesPladdon.java index 8ef36f4..cd9a7a6 100644 --- a/src/main/java/world/bentobox/biomes/BiomesPladdon.java +++ b/src/main/java/world/bentobox/biomes/BiomesPladdon.java @@ -7,18 +7,10 @@ package world.bentobox.biomes; -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 = "Biomes", version = "1.0") -@ApiVersion(ApiVersion.Target.v1_19) public class BiomesPladdon extends Pladdon { @Override diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..a87dfa8 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,9 @@ +name: BentoBox-Biomes +main: world.bentobox.biomes.BiomesPladdon +version: ${project.version}${build.number} +api-version: "1.19" + +authors: [BONNe] +contributors: ["The BentoBoxWorld Community"] +website: https://bentobox.world +description: ${project.description}