How to setup shading with Minecraft Forge
Shading is the concept of packing external dependencies inside your jar so that they exist in production.
Without this, using external libraries would produce
ClassNotFoundExceptions when you run your mod jar outside of an IDE.
This guide explains how to setup shading through Gradle.
This guide assumes that:
- You are on ForgeGradle 5 or higher
- You are on Gradle 7.0 or higher