Skip to content

Handy gradle utilities for the various gradle projects of SpongePowered

License

Notifications You must be signed in to change notification settings

jpenilla/SpongeGradle

 
 

Repository files navigation

SpongeGradle

A suite of plugins for Sponge plugin developers, and Sponge's own projects.

org.spongepowered.gradle.plugin

The gradle plugin to assist with plugin development.

  • Generates plugin metadata files for the main source set
  • Adds a task to run a SpongeVanilla server

Quick start: (see sponge-plugin-template for a full example)

plugins {
    // [...any plugins...] 
    id("org.spongepowered.gradle.plugin") version "1.0.1"
}

sponge {
    apiVersion("8.0.0")
    plugin("example") {
        loader(PluginLoaders.JAVA_PLAIN)
        displayName("Example")
        version("0.1")
        mainClass("org.spongepowered.example.Example")
        description("Just testing things...")
        links {
            homepage("https://spongepowered.org")
            source("https://spongepowered.org/source")
            issues("https://spongepowered.org/issues")
        }
        contributor("Spongie") {
            description("Lead Developer")
        }
        dependency("spongeapi") {
            loadOrder(PluginDependency.LoadOrder.AFTER)
            optional(false)
        }
    }
}

// [...]

About

Handy gradle utilities for the various gradle projects of SpongePowered

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 88.8%
  • Kotlin 9.5%
  • Groovy 1.7%