3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-19 14:30:16 +01:00

Uppercase jar names

Dieser Commit ist enthalten in:
jmp 2021-02-18 01:15:43 -08:00 committet von KennyTV
Ursprung 024c36c584
Commit 02f1ab1752
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
3 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -11,6 +11,7 @@ fun Project.configureShadowJar() {
tasks { tasks {
withType<ShadowJar> { withType<ShadowJar> {
archiveClassifier.set("") archiveClassifier.set("")
archiveFileName.set("ViaVersion-${project.name.substringAfter("viaversion-").capitalize()}-${project.version}.jar")
destinationDirectory.set(rootProject.projectDir.resolve("build/libs")) destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
//minimize() // ? //minimize() // ?
configureRelocations() configureRelocations()
@ -23,7 +24,6 @@ fun Project.configureShadowJar() {
} }
private fun ShadowJar.configureRelocations() { private fun ShadowJar.configureRelocations() {
relocate("org.yaml.snakeyaml", "us.myles.viaversion.libs.snakeyaml")
relocate("javassist", "us.myles.viaversion.libs.javassist") relocate("javassist", "us.myles.viaversion.libs.javassist")
relocate("com.google.gson", "us.myles.viaversion.libs.gson") relocate("com.google.gson", "us.myles.viaversion.libs.gson")
relocate("com.github.steveice10.opennbt", "us.myles.viaversion.libs.opennbt") relocate("com.github.steveice10.opennbt", "us.myles.viaversion.libs.opennbt")
@ -69,6 +69,7 @@ private fun ShadowJar.configureExcludes() {
exclude("it/unimi/dsi/fastutil/*/*Big*") exclude("it/unimi/dsi/fastutil/*/*Big*")
exclude("it/unimi/dsi/fastutil/*/*Synchronized*") exclude("it/unimi/dsi/fastutil/*/*Synchronized*")
exclude("it/unimi/dsi/fastutil/*/*Unmodifiable*") exclude("it/unimi/dsi/fastutil/*/*Unmodifiable*")
exclude("it/unimi/dsi/fastutil/io/*")
} }
fun Project.latestCommitHash(): String { fun Project.latestCommitHash(): String {

Datei anzeigen

@ -15,8 +15,8 @@ dependencies {
api("com.github.steveice10", "opennbt", Versions.openNBT) api("com.github.steveice10", "opennbt", Versions.openNBT)
api("com.google.code.gson", "gson", Versions.gson) api("com.google.code.gson", "gson", Versions.gson)
api("org.javassist", "javassist", Versions.javassist) api("org.javassist", "javassist", Versions.javassist)
api("org.yaml", "snakeyaml", Versions.snakeYaml)
compileOnlyApi("org.yaml", "snakeyaml", Versions.snakeYaml)
compileOnlyApi("io.netty", "netty-all", Versions.netty) compileOnlyApi("io.netty", "netty-all", Versions.netty)
compileOnlyApi("com.google.guava", "guava", Versions.guava) compileOnlyApi("com.google.guava", "guava", Versions.guava)
compileOnlyApi("org.jetbrains", "annotations", Versions.jetbrainsAnnotations) compileOnlyApi("org.jetbrains", "annotations", Versions.jetbrainsAnnotations)

Datei anzeigen

@ -2,6 +2,7 @@ tasks {
val universalJar = register<Jar>("universalJar") { val universalJar = register<Jar>("universalJar") {
artifacts.add("archives", this) artifacts.add("archives", this)
archiveClassifier.set("") archiveClassifier.set("")
archiveFileName.set("ViaVersion-Universal-${project.version}.jar")
destinationDirectory.set(rootProject.projectDir.resolve("build/libs")) destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE duplicatesStrategy = DuplicatesStrategy.EXCLUDE
arrayOf( arrayOf(