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

*cries in elephant*

Dieser Commit ist enthalten in:
KennyTV 2021-02-17 17:50:47 +01:00
Ursprung c0dabfe097
Commit ef6c347194
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
12 geänderte Dateien mit 93 neuen und 7 gelöschten Zeilen

14
buildSrc/build.gradle.kts Normale Datei
Datei anzeigen

@ -0,0 +1,14 @@
plugins {
// Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
`kotlin-dsl`
id("com.github.johnrengelman.shadow") version ("6.1.0") apply false
}
repositories {
// Use the plugin portal to apply community plugins in convention plugins.
gradlePluginPortal()
}
dependencies {
compileOnly("com.github.jengelman.gradle.plugins", "shadow", "6.1.0")
}

Datei anzeigen

@ -0,0 +1,45 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
fun relocate(shadow: ShadowJar) {
shadow.relocate("org.yaml.snakeyaml", "us.myles.viaversion.libs.snakeyaml")
shadow.relocate("javassist", "us.myles.viaversion.libs.javassist")
shadow.relocate("com.google.gson", "us.myles.viaversion.libs.gson")
shadow.relocate("com.github.steveice10.opennbt", "us.myles.viaversion.libs.opennbt")
shadow.relocate("net.md_5.bungee", "us.myles.viaversion.libs.bungeecordchat") {
include("net.md_5.bungee.api.chat.*")
include("net.md_5.bungee.api.ChatColor")
include("net.md_5.bungee.api.ChatMessageType")
include("net.md_5.bungee.chat.*")
}
}
fun relocateAll(shadow: ShadowJar) {
relocate(shadow)
shadow.relocate("it.unimi.dsi.fastutil", "us.myles.viaversion.libs.fastutil") {
// We only want int and Object maps
include("it.unimi.dsi.fastutil.ints.*")
include("it.unimi.dsi.fastutil.objects.*")
include("it.unimi.dsi.fastutil.*.class")
// 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.*.*Linked*")
exclude("it.unimi.dsi.fastutil.*.*Sorted*")
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*")
}
}

Datei anzeigen

@ -1,5 +1,5 @@
dependencies { dependencies {
implementation(project(":viaversion-common")) compileOnly(project(":viaversion-common"))
compileOnly("org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT") { compileOnly("org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT") {
exclude("junit", "junit") exclude("junit", "junit")
exclude("com.google.code.gson", "gson") exclude("com.google.code.gson", "gson")

Datei anzeigen

@ -1,6 +1,8 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
dependencies { dependencies {
implementation(project(":viaversion-bukkit-legacy")) implementation(project(":viaversion-bukkit-legacy"))
implementation(project(":viaversion-common")) compileOnly(project(":viaversion-common"))
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT") { compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT") {
exclude("junit", "junit") exclude("junit", "junit")
exclude("com.google.code.gson", "gson") exclude("com.google.code.gson", "gson")

Datei anzeigen

@ -1,5 +1,5 @@
dependencies { dependencies {
implementation(project(":viaversion-common")) compileOnly(project(":viaversion-common"))
compileOnly("net.md-5:bungeecord-api:1.15-SNAPSHOT") compileOnly("net.md-5:bungeecord-api:1.15-SNAPSHOT")
} }

Datei anzeigen

@ -10,4 +10,21 @@ blossom {
replaceToken("\$IMPL_VERSION", "git-ViaVersion-" + project.version + ":" + commitId) replaceToken("\$IMPL_VERSION", "git-ViaVersion-" + project.version + ":" + commitId)
} }
dependencies {
implementation("net.md-5:bungeecord-chat:1.16-R0.5-SNAPSHOT")
implementation("it.unimi.dsi:fastutil:8.3.1")
implementation("com.github.steveice10:opennbt:1.2-SNAPSHOT")
implementation("com.google.code.gson:gson:2.8.6")
implementation("org.javassist:javassist:3.27.0-GA")
implementation("org.yaml:snakeyaml:1.18")
compileOnly("io.netty:netty-all:4.0.20.Final")
compileOnly("com.google.guava:guava:17.0")
compileOnly("org.jetbrains:annotations:19.0.0")
testImplementation("io.netty:netty-all:4.0.20.Final")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.3")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.6.3")
}
description = "viaversion-common" description = "viaversion-common"

Datei anzeigen

@ -1,5 +1,5 @@
dependencies { dependencies {
implementation(project(":viaversion-common")) compileOnly(project(":viaversion-common"))
} }
description = "viaversion-fabric" description = "viaversion-fabric"

Datei anzeigen

@ -1,3 +1,5 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
dependencies { dependencies {
implementation(project(":viaversion-common")) implementation(project(":viaversion-common"))
implementation(project(":viaversion-bukkit")) implementation(project(":viaversion-bukkit"))
@ -7,4 +9,10 @@ dependencies {
implementation(project(":viaversion-velocity")) implementation(project(":viaversion-velocity"))
} }
tasks {
withType<ShadowJar>() {
archiveFileName.set("ViaVersion-" + project.version + ".jar")
}
}
description = "viaversion-jar" description = "viaversion-jar"

Datei anzeigen

@ -1,5 +1,5 @@
dependencies { dependencies {
implementation(project(":viaversion-common")) compileOnly(project(":viaversion-common"))
compileOnly("org.spongepowered:spongeapi:4.0.0-SNAPSHOT") compileOnly("org.spongepowered:spongeapi:4.0.0-SNAPSHOT")
} }

Datei anzeigen

@ -1,6 +1,6 @@
dependencies { dependencies {
implementation(project(":viaversion-sponge-legacy")) implementation(project(":viaversion-sponge-legacy"))
implementation(project(":viaversion-common")) compileOnly(project(":viaversion-common"))
compileOnly("org.spongepowered:spongeapi:5.0.0-SNAPSHOT") compileOnly("org.spongepowered:spongeapi:5.0.0-SNAPSHOT")
} }

Datei anzeigen

@ -1,5 +1,5 @@
dependencies { dependencies {
implementation(project(":viaversion-common")) compileOnly(project(":viaversion-common"))
compileOnly("com.velocitypowered:velocity-api:1.1.0-SNAPSHOT") compileOnly("com.velocitypowered:velocity-api:1.1.0-SNAPSHOT")
annotationProcessor("com.velocitypowered:velocity-api:1.1.0-SNAPSHOT") annotationProcessor("com.velocitypowered:velocity-api:1.1.0-SNAPSHOT")
} }