1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2026-01-06 15:42:03 +00:00

Floodgate-Fabric on 1.19.3 actually works

This commit is contained in:
Camotoy
2022-12-19 18:18:55 -05:00
parent 232ccfa5f6
commit 9fe1431b47

View File

@@ -1,5 +1,7 @@
import net.fabricmc.loom.task.RemapJarTask
import java.nio.file.FileSystems
plugins {
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'fabric-loom' version '1.0-SNAPSHOT'
@@ -38,7 +40,6 @@ dependencies {
exclude group: 'com.google.guava', module: "guava"
exclude group: 'com.google.code.gson', module: "gson"
exclude group: 'org.slf4j', module: "slf4j-api"
exclude group: 'net.kyori', module: '*' // Let Adventure-Platform provide its desired Adventure version
exclude group: 'it.unimi.dsi.fastutil', module: "*"
}
@@ -111,12 +112,14 @@ java {
shadowJar {
configurations = [project.configurations.shadow]
relocate("org.bstats", "org.geysermc.floodgate.shadow.org.bstats")
exclude {
FileTreeElement e ->
e.name.startsWith("com.google") && !e.name.startsWith("com.google.inject") // Guava and Gson
}
// TODO this is temporary until Floodgate's dev branch is merged
relocate("com.google.inject", "org.geysermc.floodgate.shadow.guice")
exclude([
'cloud/**',
'com/google/common/**', 'com/google/errorprone/**', 'com/google/gson/**', 'com/google/j2objc/**', 'com/google/thirdparty/**',
'it/unimi/**',
'org/slf4j/**'
])
}
task remappedShadowJar(type: RemapJarTask) {