Files
Carbon/paper/build.gradle.kts
T
Jason Penilla e803fa4203 Initial work on user rewrite
Only JSONUserManager and Paper platform work currently
2023-03-19 11:24:11 -07:00

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.4")
}
}
// 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
}
}