2021-02-28 12:14:46 +01:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
2021-04-14 14:16:48 +02:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.github.johnrengelman.shadow")
|
|
|
|
}
|
2021-02-28 12:14:46 +01:00
|
|
|
|
|
|
|
// 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 {
|
|
|
|
withType<ShadowJar> {
|
2021-04-26 20:52:34 +02:00
|
|
|
relocate("net.kyori", "com.viaversion.viaversion.libs.kyori")
|
2021-02-28 12:14:46 +01:00
|
|
|
}
|
|
|
|
getByName("build") {
|
|
|
|
dependsOn(withType<ShadowJar>())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-04-14 14:16:48 +02:00
|
|
|
api(libs.bundles.adventure) {
|
2021-02-28 12:14:46 +01:00
|
|
|
exclude("org.checkerframework")
|
|
|
|
exclude("net.kyori", "adventure-api")
|
|
|
|
exclude("net.kyori", "adventure-bom")
|
|
|
|
exclude("com.google.code.gson", "gson")
|
|
|
|
}
|
|
|
|
}
|