We had our fair share in struggles with build scripts for Minecraft Forge. There are quite a few pitfalls from non-obvious error messages. This Example Project ...
Originally, I intended to create a fork that removes the useless/broken Minecraft Realms and Mod Options... buttons to save GUI space and improve the user experience, especially for new players.