Skip to content

Latest commit

 

History

History
115 lines (88 loc) · 2.56 KB

README.md

File metadata and controls

115 lines (88 loc) · 2.56 KB

Spigot-Annotations

Annotation processor for Spigot- and BungeeCord-Plugins

Build Status Download codecov Maven Central

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.

Usage

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 {

}

With Gradle

Repository

Add the repository to your build.gradle.

...
repositories {
    ...
    jCenter()
    or
    mavenCentral()
    ...
}
...

Dependency

Add the dependency to your build.gradle.

...
dependencies {
    compileOnly group: 'eu.hexagonmc', name: 'spigot-annotations', version: '1.2'
}
...

With Maven

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>

With Ivy

Repository

Add the resolver to your ivysettings.xml

<ivysettings>
    ...
    <resolvers>
        ...
        <ibiblio name='central' m2compatible='true'/>
        ...
    </resolvers>
    ...
</ivysettings>

Dependency

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>