mirror of
https://github.com/ViaVersion/Mappings.git
synced 2024-11-21 11:55:14 +01:00
5022385438
Bumps [org.jetbrains:annotations](https://github.com/JetBrains/java-annotations) from 24.1.0 to 26.0.1. - [Release notes](https://github.com/JetBrains/java-annotations/releases) - [Changelog](https://github.com/JetBrains/java-annotations/blob/master/CHANGELOG.md) - [Commits](https://github.com/JetBrains/java-annotations/compare/24.1.0...26.0.1) --- updated-dependencies: - dependency-name: org.jetbrains:annotations dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
79 lines
2.3 KiB
Plaintext
79 lines
2.3 KiB
Plaintext
plugins {
|
|
`java-library`
|
|
id("com.gradleup.shadow") version "8.3.2"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.viaversion.com")
|
|
}
|
|
|
|
dependencies {
|
|
api("com.google.code.gson:gson:2.11.0")
|
|
api("com.viaversion:nbt:5.0.0")
|
|
api("it.unimi.dsi:fastutil:8.5.14")
|
|
api("ch.qos.logback:logback-classic:1.5.8")
|
|
compileOnly("org.jetbrains:annotations:26.0.1")
|
|
// Uncomment to manually run mappings gen in ide
|
|
compileOnly(files("server.jar"))
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.11.1")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
group = "com.viaversion"
|
|
version = "4.1.0"
|
|
description = "MappingsGenerator"
|
|
java.sourceCompatibility = JavaVersion.VERSION_21
|
|
|
|
tasks {
|
|
withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
withType<Javadoc> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes["Main-Class"] = "com.viaversion.mappingsgenerator.MappingsGenerator"
|
|
}
|
|
}
|
|
|
|
|
|
shadowJar {
|
|
archiveClassifier.set("")
|
|
archiveFileName.set("MappingsGenerator-${project.version}.jar")
|
|
|
|
relocate("com.google.gson", "com.viaversion.viaversion.libs.gson")
|
|
relocate("it.unimi.dsi.fastutil", "com.viaversion.viaversion.libs.fastutil")
|
|
|
|
// FastUtil - we only want object and int maps
|
|
// Object types
|
|
exclude("it/unimi/dsi/fastutil/*/*Reference*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Boolean*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Byte*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Short*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Float*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Double*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Long*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Char*")
|
|
// Map types
|
|
exclude("it/unimi/dsi/fastutil/*/*Custom*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Tree*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Heap*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Queue*")
|
|
// Crossing fingers
|
|
exclude("it/unimi/dsi/fastutil/*/*Big*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Synchronized*")
|
|
exclude("it/unimi/dsi/fastutil/*/*Unmodifiable*")
|
|
}
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|