Gradle plugin bundle for Grounds projects.
gg.grounds.root: shared repo configuration (Kotlin, publishing, Spotless, test logging, ...).gg.grounds.paper: Paper server plugin defaults (Paper repo, shadow packaging, Paper API dep, ...).gg.grounds.velocity: Velocity proxy plugin defaults (Paper repo, shadow packaging, Velocity API deps, BuildConfig, ...).
Add the GitHub Packages repo to pluginManagement so Gradle can resolve the
gg.grounds.* plugins via the plugins {} block.
Kotlin DSL (settings.gradle.kts):
pluginManagement {
repositories {
maven {
url = uri("https://maven.pkg.github.com/groundsgg/*")
credentials {
username = providers.gradleProperty("github.user").get()
password = providers.gradleProperty("github.token").get()
}
}
gradlePluginPortal()
}
}Kotlin DSL (build.gradle.kts):
plugins {
id("gg.grounds.root") version "0.1.0"
}For Paper subprojects:
plugins {
id("gg.grounds.paper") version "0.1.0"
}For Velocity subprojects:
plugins {
id("gg.grounds.velocity") version "0.1.0"
}Both gg.grounds.paper and gg.grounds.velocity use the same grounds extension.
Set addDependencies to control whether the plugin adds the Paper/Velocity API dependencies.
Kotlin DSL (build.gradle.kts):
grounds {
addDependencies.set(false)
}