From cd78ffc069cf759e6884e416edd7e5fb2e328558 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Mon, 17 Jul 2023 07:55:09 -0500 Subject: [PATCH] Fix Netty not being embedded in the Jar correctly (Thanks coolGi!) --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8d5f22cd9..3be125e3f 100644 --- a/build.gradle +++ b/build.gradle @@ -230,7 +230,7 @@ subprojects { p -> forgeShadowMe("com.formdev:flatlaf-extras:${rootProject.flatlaf_version}") // Netty - implementation("io.netty:netty-all:${rootProject.netty_version}") + forgeShadowMe("io.netty:netty-all:${rootProject.netty_version}") // Remember, for lwjgl dependancies that arent included in Minecraft, you need to also need to add it to the ShadowJar thing forgeShadowMe("org.lwjgl:lwjgl-jawt:3.2.2") { @@ -311,6 +311,9 @@ subprojects { p -> // SVG relocate "com.kitfox.svg", "${librariesLocation}.kitfox.svg" + + // Netty + relocate "io.netty", "${librariesLocation}.netty" mergeServiceFiles() }