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:
17
build.gradle
17
build.gradle
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user