Annotation processor for Spigot- and BungeeCord-Plugins
This dependency adds an annotation preprocessor to your project which generates the plugin.yml and bungee.yml for you.
The project is hosted on jCenter and Maven Central.
To use it simply add the dependency to your project as described below. After this you can start annotating your plugin main classes with @Plugin.
For example:
import eu.hexagonmc.spigot.annotation.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
@Plugin(name = "MyPlugin", version = "1.0", description = "My simple plugin")
public class Main extends JavaPlugin {
}Add the repository to your build.gradle.
...
repositories {
...
jCenter()
or
mavenCentral()
...
}
...Add the dependency to your build.gradle.
...
dependencies {
compileOnly group: 'eu.hexagonmc', name: 'spigot-annotations', version: '1.2'
}
...Add the dependency to your pom.xml.
<project>
...
<dependencies>
...
<dependency>
<groupId>eu.hexagonmc</groupId>
<artifactId>spigot-annotations</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
...
</dependencies>
...
</project>Add the resolver to your ivysettings.xml
<ivysettings>
...
<resolvers>
...
<ibiblio name='central' m2compatible='true'/>
...
</resolvers>
...
</ivysettings>Add the dependency to your ivy.xml.
<ivy-module version="1.0">
...
<dependencies>
...
<dependency org='eu.hexagonmc' name='spigot-annotations' rev='1.2'>
<artifact name='spigot-annotations' m:classifier='' ext='jar' />
</dependency>
...
</dependencies>
</ivy-module>