mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
52 lines
1.2 KiB
Kotlin
52 lines
1.2 KiB
Kotlin
import org.spongepowered.gradle.plugin.config.PluginLoaders
|
|
import org.spongepowered.plugin.metadata.PluginDependency
|
|
import java.util.Locale
|
|
|
|
plugins {
|
|
id("carbon-shadow-subproject")
|
|
id("org.spongepowered.gradle.plugin")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.carbonchatCommon)
|
|
implementation(libs.cloudSponge)
|
|
//implementation(libs.bstatsSponge) // not updated for api 8 yet
|
|
}
|
|
|
|
tasks {
|
|
runServer {
|
|
classpath(shadowJar)
|
|
}
|
|
shadowJar {
|
|
dependencies {
|
|
// included in sponge
|
|
exclude(dependency("io.leangen.geantyref:geantyref"))
|
|
}
|
|
}
|
|
}
|
|
|
|
sponge {
|
|
apiVersion("8.0.0")
|
|
plugin(rootProject.name.toLowerCase(Locale.ROOT)) {
|
|
loader(PluginLoaders.JAVA_PLAIN)
|
|
displayName(rootProject.name)
|
|
mainClass("net.draycia.carbon.sponge.CarbonChatSponge")
|
|
description(project.description)
|
|
links {
|
|
homepage(GITHUB_REPO_URL)
|
|
source(GITHUB_REPO_URL)
|
|
issues("$GITHUB_REPO_URL/issues")
|
|
}
|
|
contributor("Vicarious") {
|
|
description("Lead Developer")
|
|
}
|
|
contributor("Glare") {
|
|
description("Moral Support")
|
|
}
|
|
dependency("spongeapi") {
|
|
loadOrder(PluginDependency.LoadOrder.AFTER)
|
|
optional(false)
|
|
}
|
|
}
|
|
}
|