mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-27 04:25:12 +01:00
60b3ba6bb7
Snakeyaml is an untypical library which most Via platforms don't have and also broke in the past with V2, having it directly in the jar like Gson cleans up the build scripts massively, reduces the build time and also doesn't break in the future if they release V3 or any other breaking changes.
37 lines
791 B
Plaintext
37 lines
791 B
Plaintext
plugins {
|
|
id("net.kyori.blossom")
|
|
id("org.jetbrains.gradle.plugin.idea-ext")
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
blossom {
|
|
javaSources {
|
|
property("version", project.version.toString())
|
|
property("impl_version", "git-ViaVersion-${project.version}:${rootProject.latestCommitHash()}")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(libs.fastutil)
|
|
api(libs.vianbt) {
|
|
exclude("it.unimi.dsi", "fastutil")
|
|
}
|
|
api(libs.gson)
|
|
implementation(rootProject.libs.text) {
|
|
exclude("com.google.code.gson", "gson")
|
|
exclude("com.viaversion", "nbt")
|
|
}
|
|
api(libs.snakeYaml)
|
|
|
|
compileOnlyApi(libs.netty)
|
|
compileOnlyApi(libs.guava)
|
|
compileOnlyApi(libs.checkerQual)
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
}
|