mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
Adjust dependency loading and relocations (#234)
This commit is contained in:
1 parent
2ee7c85a35
commit
1397cd4c4f
7 files changed
+57
-62
No files matched your search
@@ -1,5 +1,3 @@
|
||||
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
||||
|
||||
plugins {
|
||||
id("carbon.shadow-platform")
|
||||
id("net.minecrell.plugin-yml.bukkit")
|
||||
@@ -20,7 +18,6 @@ dependencies {
|
||||
|
||||
// Misc
|
||||
implementation(libs.bstatsBukkit)
|
||||
implementation(libs.libbyBukkit)
|
||||
|
||||
// Plugins
|
||||
compileOnly("me.clip:placeholderapi:2.10.9") // TODO: move this to libs.versions.yml
|
||||
@@ -45,6 +42,7 @@ tasks {
|
||||
paper {
|
||||
name = rootProject.name
|
||||
version = project.version as String
|
||||
loader = "net.draycia.carbon.paper.CarbonPaperLoader"
|
||||
main = "net.draycia.carbon.paper.CarbonPaperBootstrap"
|
||||
apiVersion = "1.19"
|
||||
author = "Draycia"
|
||||
@@ -70,8 +68,6 @@ bukkit {
|
||||
|
||||
carbonPermission.permissions.get().forEach {
|
||||
setOf(bukkit.permissions, paper.permissions).forEach { container ->
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
container as NamedDomainObjectContainer<BukkitPluginDescription.Permission>
|
||||
container.register(it.string) {
|
||||
description = it.description
|
||||
childrenMap = it.children
|
||||
|
||||
Reference in new issue
Block a user