ForgeGradle Documentation
This is the official documentation for ForgeGradle, a Gradle plugin for developing MinecraftForge and mods using MinecraftForge.
This documentation is only for ForgeGradle, this is not a Java, Groovy, or Gradle tutorial.
If you would like to contribute to the docs, read Contributing to the Docs.
Adding the Plugin
ForgeGradle can be added using the plugins
block by adding the MinecraftForge maven to the available plugin repositories:
// In settings.gradle
pluginManagement {
repositories {
// ...
// Add the MinecraftForge maven
maven { url = 'https://maven.minecraftforge.net/' }
}
}
// In build.gradle
plugins {
// Add the ForgeGradle plugin
id 'net.minecraftforge.gradle' version '5.1.+'
// ...
}