From df1f431c6cb68bab085a182970c33cd0e96cddca Mon Sep 17 00:00:00 2001 From: Michael Reichenbach Date: Mon, 6 Jul 2020 09:25:50 +0200 Subject: [PATCH] feat: update spigradle to 2.0.0 BREAKING CHANGE: The `@Plugin` annotation on the plugin main class for spigradle was renamed to `@PluginMain` Closes #19 --- build.gradle | 2 +- src/main/java/net/silthus/template/TemplatePlugin.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 48f14ec..6d0fea6 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { plugins { id 'com.github.johnrengelman.shadow' version '6.0.0' - id 'kr.entree.spigradle' version '1.4.1' + id 'kr.entree.spigradle' version '2.0.0' id 'java' id 'jacoco' } diff --git a/src/main/java/net/silthus/template/TemplatePlugin.java b/src/main/java/net/silthus/template/TemplatePlugin.java index 1665534..7dbab7c 100644 --- a/src/main/java/net/silthus/template/TemplatePlugin.java +++ b/src/main/java/net/silthus/template/TemplatePlugin.java @@ -1,6 +1,6 @@ package net.silthus.template; -import kr.entree.spigradle.Plugin; +import kr.entree.spigradle.annotations.PluginMain; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; @@ -10,7 +10,7 @@ import java.io.File; -@Plugin +@PluginMain public class TemplatePlugin extends JavaPlugin implements Listener { public TemplatePlugin() {}