user6609912
user6609912

Reputation:

Minecraft 1.10.2 Forge Gradle error

So I'm trying to install the forge api (Minecraft 1.10.2) for developing a mod, and I'm having an issue with using ForgeGradle. Every time I run it with "bash gradlew setupDecompWorkspace", I get this error:

FAILURE: Build failed with an exception.

I've found several people with the same issue, but they were posted back in (roughly) Minecraft 1.6-1.8. Does anyone have any idea about what I should do? I'm stumped and could use some help.

Upvotes: 0

Views: 1143

Answers (2)

Carl Pritchett
Carl Pritchett

Reputation: 684

I had a similar issue with forge for 1.11. I couldn't use the latest mappings file for some reason. Keeping the mappings file at snapshot_29160518 worked for me.

See this commit for a 1.10.2 plugin build.gradle file: https://github.com/ljsimin/MinecraftJoypadSplitscreenMod/commit/76b7c83bc35cbe11d6516b31f8e5e4f7ec74b99c

Upvotes: 0

Shadowfacts
Shadowfacts

Reputation: 1053

You need to set the mappings property in the minecraft closure in your build.gradle file so ForgeGradle knows which version of the MCP mappings to use.

For example, this will use the latest mappings (as of this posting):

minecraft {
    mappings = "snapshot_20161002"
}

The snapshot mappings are built daily and the versions are in the form of snapshot_YYYYMMDD, you can see all the mappings versions here.

Upvotes: 0

Related Questions