Skip to content
mezz edited this page Nov 22, 2026 · 40 revisions

Note

Version note: This page covers Minecraft 1.12.2 for Forge.

Other setup pages:

Set up your Gradle build script

Start with an existing Minecraft project targeting Java 8. Choose your mod loader below, then expand the option matching your project's build tool.

Choose a Version

The badges show the latest JEI versions for each Minecraft version and mod loader. Click a badge to browse releases.

Minecraft Forge
1.12.2 JEI for Forge 1.12.2

Add the matching versions to gradle.properties beside your build.gradle:

mc_version=1.12.2
jei_version=<matching JEI version>

Maven repositories

repositories {
  maven { url = "https://dvs1.progwml6.com/files/maven/" }
  maven { url = "https://maven.blamejared.com/" }
}

Forge

RetroFuturaGradle

Start from a RetroFuturaGradle project with 1.12.2 support.

Add this configuration to build.gradle if it is not already present:

configurations {
  localRuntime {
    canBeConsumed = false
    canBeResolved = false
  }
  runtimeClasspath.extendsFrom localRuntime
}
dependencies {
  // Compile against the JEI API without adding it as a runtime dependency.
  compileOnly(rfg.deobf("mezz.jei:jei_${mc_version}:${jei_version}:api"))

  // Load the full JEI mod for development testing on Forge.
  localRuntime(rfg.deobf("mezz.jei:jei_${mc_version}:${jei_version}"))
}
ForgeGradle 7 + Renamer

In your existing FG7 project, add Renamer to the plugins block:

plugins {
  id 'net.minecraftforge.renamer' version '1.1.2'
}

Add this configuration to build.gradle if it is not already present:

configurations {
  localRuntime {
    canBeConsumed = false
    canBeResolved = false
  }
  runtimeClasspath.extendsFrom localRuntime
}

Add this line after the dependencies block that declares Minecraft:

renamer.mappings.from minecraft.dependency.toSrgFile
dependencies {
  // Compile against the JEI API without adding it as a runtime dependency.
  compileOnly(renamer.dependency("mezz.jei:jei_${mc_version}:${jei_version}:api"))

  // Load the full JEI mod for development testing on Forge.
  localRuntime(renamer.dependency("mezz.jei:jei_${mc_version}:${jei_version}"))
}

For a new project, start from Forge's 1.12.2 FG7 example.

ForgeGradle 3–6 / RetroGradle

Add this configuration to build.gradle if it is not already present:

configurations {
  localRuntime {
    canBeConsumed = false
    canBeResolved = false
  }
  runtimeClasspath.extendsFrom localRuntime
}
dependencies {
  // Compile against the JEI API without adding it as a runtime dependency.
  compileOnly(fg.deobf("mezz.jei:jei_${mc_version}:${jei_version}:api"))

  // Load the full JEI mod for development testing on Forge.
  localRuntime(fg.deobf("mezz.jei:jei_${mc_version}:${jei_version}"))
}
ForgeGradle 2

Add these dependencies to build.gradle:

dependencies {
  // Compile against the JEI API.
  deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api"

  // Load the full JEI mod for development testing on Forge.
  runtime "mezz.jei:jei_${mc_version}:${jei_version}"
}

Run gradlew setupDecompWorkspace, then reload your Gradle project in the IDE.

Why compile against the API?

Compiling against the API helps keep your integration compatible with JEI updates. The runtime dependency adds JEI to your development game for testing.

If you need an API feature, ask on the issue tracker.

Home

List of Plugin Implementations

Minecraft 26.1.2–26.3

  1. Setup
  1. Ingredients and Search
  1. Recipes
  1. Screen Integration

Minecraft 1.21.11

  1. Setup
  1. Ingredients and Search
  1. Recipes
  1. Screen Integration

Minecraft 1.21–1.21.1

  1. Setup
  1. Ingredients and Search
  1. Recipes

Minecraft 1.19.2 and 1.20.1

  1. Setup
  1. Item Ingredients
  1. Working with Recipes
  1. Essential Extras
  1. Advanced

Minecraft 1.16.5

  1. Setup
  1. Item Ingredients
  1. Working with Recipes
  1. Essential Extras
  1. Advanced

Minecraft 1.12.2

  1. Setup
  1. Item Ingredients
  1. Working with Recipes
  1. Essential Extras
  1. Advanced

Clone this wiki locally