mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
74 lines
1.6 KiB
Kotlin
74 lines
1.6 KiB
Kotlin
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
|
|
|
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.paperTrail)
|
|
|
|
// 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.papertrail")
|
|
relocateDependency("io.leangen.geantyref")
|
|
}
|
|
runServer {
|
|
minecraftVersion("1.19.4")
|
|
}
|
|
}
|
|
|
|
plugins.apply(PaperPlugin::class)
|
|
|
|
val paper = extensions["paper"] as BukkitPluginDescription
|
|
paper.apply {
|
|
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
|
|
}
|
|
|
|
bukkit {
|
|
name = rootProject.name
|
|
version = project.version as String
|
|
main = "net.draycia.carbon.libs.io.papermc.papertrail.RequiresPaperPlugins"
|
|
apiVersion = "1.19"
|
|
author = "Draycia"
|
|
website = GITHUB_REPO_URL
|
|
}
|
|
|
|
carbonPermission.permissions.get().forEach {
|
|
setOf(bukkit, paper).forEach { ext ->
|
|
ext.permissions.register(it.string) {
|
|
description = it.description
|
|
childrenMap = it.children
|
|
}
|
|
}
|
|
}
|