From 3e282db4c503dc10755bf01e9e66a94a7f59d45d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MC=7E=E8=9B=9F=E9=BE=99?= <1610105206@qq.com> Date: Wed, 10 Jul 2024 21:39:41 +0800 Subject: [PATCH] Optimize struture --- plugin/build.gradle.kts | 9 --------- plugin/platform-bukkit/build.gradle.kts | 17 +++++++++++++++++ project/build.gradle.kts | 8 +++++++- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 37f0d5a9..5dd5843c 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -72,14 +72,6 @@ subprojects { implementation("ch.jalu:configme:1.3.1") { exclude("org.yaml", "snakeyaml") } - // bStats metrics - implementation("org.bstats:bstats-bukkit:3.0.2") - // ProtocolLib - compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0") - // LuckPerms plugin - compileOnly("net.luckperms:api:5.4") - // PermissionsEx plugin - compileOnly("ru.tehkode:PermissionsEx:1.23.5-SNAPSHOT") // Dependencies used by HAProxy feature // implementation("io.netty:netty-codec-haproxy:4.1.104.Final") // compileOnly("commons-validator:commons-validator:1.8.0") @@ -117,7 +109,6 @@ subprojects { // Options archiveAppendix.set("") archiveClassifier.set("") - archiveBaseName.set("AuthMe") destinationDirectory.set(file("$rootDir/outs")) // Kotlin relocate("kotlin.", "kolin200.") diff --git a/plugin/platform-bukkit/build.gradle.kts b/plugin/platform-bukkit/build.gradle.kts index 34e70fe0..744da80a 100644 --- a/plugin/platform-bukkit/build.gradle.kts +++ b/plugin/platform-bukkit/build.gradle.kts @@ -1,6 +1,23 @@ description = "Fork of the first authentication plugin for the Bukkit API!" dependencies { + // Adventure Bukkit implementation("net.kyori:adventure-platform-bukkit:4.3.2") + + // Hooks - Start + // bStats metrics + implementation("org.bstats:bstats-bukkit:3.0.2") + // ProtocolLib + compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0") + // LuckPerms plugin + compileOnly("net.luckperms:api:5.4") + // PermissionsEx plugin + compileOnly("ru.tehkode:PermissionsEx:1.23.5-SNAPSHOT") + // Hooks - End + +} + +tasks.shadowJar { + archiveBaseName.set("AuthMe-Bukkit") } \ No newline at end of file diff --git a/project/build.gradle.kts b/project/build.gradle.kts index 281f896d..dbbe3dd7 100644 --- a/project/build.gradle.kts +++ b/project/build.gradle.kts @@ -1 +1,7 @@ -dependencies {} \ No newline at end of file +subprojects { + + tasks { + build { dependsOn(shadowJar) } + } + +} \ No newline at end of file