Generate patches
If you modified the Minecraft source code, you can generate patches with the following command:
bash gradlew.bat genPatches
After entering the command, you can go and have a cup of tea, it can take a long time (allow up to 5 minutes).