This plugin is intended to simplify the gradle workflow and project boilerplate code of minecraft mod projects. It works for fabric, forge or even multiloader projects containing multiple subprojects.
You can find the actual code under the specific versions branch (v1.2, v1.3, v1.4, ...)
Read the Documentation for more information.