mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-27 04:25:12 +01:00
26 lines
666 B
Plaintext
26 lines
666 B
Plaintext
plugins {
|
|
id("com.github.johnrengelman.shadow")
|
|
}
|
|
|
|
// Shade and relocate adventure in an extra module, so that common/the rest can directly depend on a
|
|
// relocated adventure without breaking native platform's adventure usage with project wide relocation
|
|
tasks {
|
|
shadowJar {
|
|
relocate("net.kyori", "com.viaversion.viaversion.libs.kyori")
|
|
}
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(libs.bundles.adventure) {
|
|
exclude("org.checkerframework")
|
|
exclude("net.kyori", "adventure-api")
|
|
exclude("net.kyori", "adventure-bom")
|
|
exclude("com.google.code.gson", "gson")
|
|
}
|
|
}
|
|
|
|
publishShadowJar()
|