build: 优化构建脚本

This commit is contained in:
2023-10-13 17:08:02 +08:00
parent 22cad88179
commit 7f468d473b
4 changed files with 11 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ version = "1.1.0-SNAPSHOT"
subprojects { subprojects {
apply { apply {
plugin("java-library") plugin("java")
plugin("maven-publish") plugin("maven-publish")
plugin("com.github.johnrengelman.shadow") plugin("com.github.johnrengelman.shadow")
} }

View File

@@ -1,18 +1,18 @@
evaluationDependsOn(":core-common") evaluationDependsOn(":core-common")
dependencies { dependencies {
api(project(":core-common")) { isTransitive = false } implementation(project(":core-common")) { isTransitive = false }
compileOnly("org.spigotmc:spigot-api:+") compileOnly("org.spigotmc:spigot-api:+")
implementation("de.tr7zw:item-nbt-api:+") implementation("de.tr7zw:item-nbt-api:+")
compileOnly("net.milkbowl.vault:VaultAPI:+") { isTransitive = false } compileOnly("net.milkbowl.vault:VaultAPI:+") { isTransitive = false }
compileOnly("org.black_ixx:playerpoints:+") { isTransitive = false } compileOnly("org.black_ixx:playerpoints:+") { isTransitive = false }
api("net.kyori:adventure-platform-bukkit:4+") { implementation("net.kyori:adventure-platform-bukkit:4+") {
exclude(group = "org.jetbrains") exclude(group = "org.jetbrains")
exclude(group = "com.google.code.gson") exclude(group = "com.google.code.gson")
} }
api("net.kyori:adventure-text-minimessage:4+") { implementation("net.kyori:adventure-text-minimessage:4+") {
exclude(module = "adventure-api") exclude(module = "adventure-api")
exclude(group = "org.jetbrains") exclude(group = "org.jetbrains")
} }

View File

@@ -1,14 +1,14 @@
evaluationDependsOn(":core-common") evaluationDependsOn(":core-common")
dependencies { dependencies {
api(project(":core-common")) { isTransitive = false } implementation(project(":core-common")) { isTransitive = false }
compileOnly("net.md-5:bungeecord-api:+") compileOnly("net.md-5:bungeecord-api:+")
api("net.kyori:adventure-platform-bungeecord:4+") { implementation("net.kyori:adventure-platform-bungeecord:4+") {
exclude(group = "org.jetbrains") exclude(group = "org.jetbrains")
exclude(group = "com.google.code.gson") exclude(group = "com.google.code.gson")
} }
api("net.kyori:adventure-text-minimessage:4+") { implementation("net.kyori:adventure-text-minimessage:4+") {
exclude(module = "adventure-api") exclude(module = "adventure-api")
exclude(group = "org.jetbrains") exclude(group = "org.jetbrains")
} }

View File

@@ -1,5 +1,9 @@
@file:Suppress("VulnerableLibrariesLocal") @file:Suppress("VulnerableLibrariesLocal")
plugins {
id("java-library")
}
dependencies { dependencies {
compileOnly("com.google.code.gson:gson:2.8.0") compileOnly("com.google.code.gson:gson:2.8.0")