diff options
-rw-r--r-- | spark-sponge/build.gradle | 11 | ||||
-rw-r--r-- | spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java | 7 |
2 files changed, 16 insertions, 2 deletions
diff --git a/spark-sponge/build.gradle b/spark-sponge/build.gradle index bfb901c..494b872 100644 --- a/spark-sponge/build.gradle +++ b/spark-sponge/build.gradle @@ -12,4 +12,13 @@ blossom { replaceTokenIn('src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java') replaceToken '@version@', project.pluginVersion replaceToken '@desc@', project.pluginDescription -}
\ No newline at end of file +} + +// Only used occasionally for deployment - not needed for normal builds. +/* +apply plugin: 'signing' +signing { + useGpgCmd() + sign configurations.archives +} +*/
\ No newline at end of file diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java index 23d01aa..aa42efd 100644 --- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java +++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java @@ -34,6 +34,7 @@ import org.spongepowered.api.command.CommandSource; import org.spongepowered.api.entity.living.player.Player; import org.spongepowered.api.event.Listener; import org.spongepowered.api.event.game.state.GameStartedServerEvent; +import org.spongepowered.api.plugin.Dependency; import org.spongepowered.api.plugin.Plugin; import org.spongepowered.api.scheduler.AsynchronousExecutor; import org.spongepowered.api.scheduler.SpongeExecutorService; @@ -57,7 +58,11 @@ import javax.annotation.Nullable; name = "spark", version = "@version@", description = "@desc@", - authors = {"Luck", "sk89q"} + authors = {"Luck", "sk89q"}, + dependencies = { + // explicit dependency on spongeapi with no defined API version + @Dependency(id = "spongeapi") + } ) public class SparkSpongePlugin implements CommandCallable { |