Jump to content

[1.8] Gradle Build duplicate entries


Recommended Posts



When I try to use gradle build, it gives me this error:


"java.util.zip.ZipException: duplicate entry: mcmod.info"


I decided to check if there was an actual duplicate in the build jar, and there was. I checked some more, and found all the files were duplicated. So I removed the build.gradle, and got the error on another file. We have recently updated to the latest forge, this might be the problem but I'm not sure.


Here is the build.gradle:


"buildscript {

  repositories {

    maven {

      url "https://plugins.gradle.org/m2/"



  dependencies {

    classpath "gradle.plugin.net.minecraftforge.gradle:ForgeGradle:2.0.2"




apply plugin: "net.minecraftforge.gradle.forge"


version = "2.0.0-pre"

group = "net.timeless.jurassicraft"

archivesBaseName = "JurassiCraft"


sourceCompatibility = targetCompatibility = "1.7"


minecraft {

    version = ""

    runDir = "minecraft"

    replace '${version}', project.version

    mappings = "snapshot_20151107"



processResources {

    inputs.property "version", project.version

    inputs.property "mcversion", project.minecraft.version


    from(sourceSets.main.resources.srcDirs) {

        include 'mcmod.info'

        expand 'version': project.version, 'mcversion': project.minecraft.version



    from(sourceSets.main.resources.srcDirs) {

        exclude 'mcmod.info'




sourceSets {

    main { output.resourcesDir = output.classesDir }



Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.