mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
* Initial pass - 1/? * oops * War against legacy, part 1 * Stuff & Bukkit * Sponge * Initial pass - 1/? * more guice * Separate guice module out * Fix broken rebase * Hello from Carbon! * stuff * Move init to correct location * Bukkit has moonshine! * Minor adjustments * Sponge guice part 1 * No turning back from this party * fix relocations and exclusions * Some cleanup with the Bukkit side of things, too * Add comment explaining why we pass this argument Co-authored-by: Riley Park <[email protected]> Co-authored-by: jmp <[email protected]>
55 lines
1.3 KiB
Kotlin
55 lines
1.3 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"))
|
|
exclude(dependency("com.google.inject:guice"))
|
|
exclude(dependency("aopalliance:aopalliance"))
|
|
exclude(dependency("javax.inject:javax.inject"))
|
|
}
|
|
}
|
|
}
|
|
|
|
sponge {
|
|
apiVersion("8.0.0")
|
|
plugin(rootProject.name.toLowerCase(Locale.ROOT)) {
|
|
loader(PluginLoaders.JAVA_PLAIN)
|
|
displayName(rootProject.name)
|
|
mainClass("net.draycia.carbon.sponge.CarbonChatSpongeEntry")
|
|
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)
|
|
}
|
|
}
|
|
}
|