• Forums

Navigation

  • Home
    • Adding the Plugin
  • Contributing to the Docs
  • Getting Started
    • Introduction
  • Configurations
    • Introduction
    • Run Configs
    • Advanced Topics
  • Dependencies
    • Introduction
    • Jar-in-Jar
  • Porting to this Version

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 uses Gradle 8; it can be added using the plugins block in the build.gradle by adding the following information to the settings.gradle:

// In settings.gradle
pluginManagement {
    repositories {
        // ...

        // Add the MinecraftForge maven
        maven { url = 'https://maven.minecraftforge.net/' }
    }
}

plugins {
    // Add toolchain resolver
    id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
}
// In build.gradle
plugins {
    // Add the ForgeGradle plugin
    id 'net.minecraftforge.gradle' version '[6.0,6.2)'

    // ...
}
Built with MkDocs using a custom theme. Hosted by Read the Docs.
Enable Dark Theme