SpigotGradle is a Gradle plugin meant to make certain tasks easier in terms of developing Spigot plugins.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.tech.ferus.gradle:SpigotGradle:1.2.0"
}
}
apply plugin: "tech.ferus.gradle.spigotgradle"plugins {
id "tech.ferus.gradle.spigotgradle" version "1.2.0"
}You should be aware that you can choose to run SpigotGradle without any configuration at all. However, if you want to specify some things or programmatically identify parameters, take a look below:
spigot {
meta {
name = project.name
version = project.version
description = project.description
main = "tld.domain.myplugin.MyPlugin"
website = "https://domain.tld"
author = "FerusGrim"
authors = ["FerusGrim"]
depend = ["SomePlugin", "AnotherPlugin"]
}
}Those are the normally accepted parameters in a plugin.yml file and they all work. :)
Behavioral Notes:
- If you have an existing
plugin.ymlfile, the settings in this configuration section will not override the settings you've already configured. - If you don't have an existing
plugin.yml, this plugin will only create it at compile time.
Simply applying the plugin will ensure that it runs. However, for clarification, the current tasks are listed below.
Gradle Tasks:
generatePluginData