build: 优化构建脚本
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
@@ -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")
|
||||||
}
|
}
|
||||||
|
@@ -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")
|
||||||
}
|
}
|
||||||
|
@@ -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")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user