Solved Multiple NMS projects and shading

JulieWoolie

New member
Mar 15, 2023
3
0
1
I currently have an issue with a Gradle Kotlin project structure in which I have 2 modules. Module A uses some NMS code. Module B needs to shade Module A into itself but also remap Module A from Mojang mappings to spigot mappings.

How can I do this? Currently the shaded result of Module B just has the unmapped classes and methods, which can't be run.

Do I need to just shade the jar output from Module A itself instead of using implementation(project(":module_A"))?
 

jmp

Paper Maintainer
Staff member
Dec 11, 2021
8
3
3
implementation(project(":module_A", "reobf"))