mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
59 lines
1.2 KiB
Kotlin
59 lines
1.2 KiB
Kotlin
plugins {
|
|
id("carbon.shadow-platform")
|
|
id("net.minecrell.plugin-yml.bukkit")
|
|
id("xyz.jpenilla.run-paper")
|
|
id("carbon.permissions")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.carbonchatCommon)
|
|
|
|
// Server
|
|
compileOnly(libs.paperApi)
|
|
implementation(libs.paperLib)
|
|
|
|
// Commands
|
|
implementation(libs.cloudPaper)
|
|
|
|
// Misc
|
|
implementation(libs.bstatsBukkit)
|
|
|
|
// Plugins
|
|
compileOnly("me.clip:placeholderapi:2.10.9") // TODO: move this to libs.versions.yml
|
|
compileOnly(libs.essentialsXDiscord)
|
|
compileOnly(libs.discordsrv)
|
|
}
|
|
|
|
carbonShadowPlatform {
|
|
relocateGuice.set(true)
|
|
}
|
|
|
|
tasks {
|
|
shadowJar {
|
|
relocateDependency("io.papermc.lib")
|
|
relocateDependency("io.leangen.geantyref")
|
|
}
|
|
runServer {
|
|
minecraftVersion("1.19.3")
|
|
}
|
|
}
|
|
|
|
// Generates plugin.yml automatically
|
|
bukkit {
|
|
name = rootProject.name
|
|
version = project.version as String
|
|
main = "net.draycia.carbon.paper.CarbonPaperBootstrap"
|
|
apiVersion = "1.19"
|
|
author = "Draycia"
|
|
depend = listOf("LuckPerms")
|
|
softDepend = listOf("PlaceholderAPI", "EssentialsDiscord", "DiscordSRV")
|
|
website = GITHUB_REPO_URL
|
|
}
|
|
|
|
carbonPermission.permissions.get().forEach {
|
|
bukkit.permissions.register(it.string) {
|
|
description = it.description
|
|
childrenMap = it.children
|
|
}
|
|
}
|