Publishing mods on CurseForge with CurseGradle

To familiarize yourself with CurseGradle, please read the project's official wiki.

Note: in recent versions, it seems that the changes outlined in this article are not necessary and perhaps even harmful.

Fabric-specific changes

(Note: Last updated for Loom 0.2.5.)

The additions necessary for usage with Fabric have been highlighted in green. If you are using Loom 0.2.5 remapJar.output should be just remapJar instead.

They are, in order:

You can set Modloader to Fabric and add supported Java versions with addGameVersion.

addGameVersion "Fabric" //Set Modloader to Fabric
addGameVersion "Java 8"
addGameVersion "Java 11"