I've tried to build mod using gradle, but build failed with an exception:
gradlew build
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':reobfJar'.
> java.util.zip.ZipException: duplicate entry: mcmod.info
plugins {
id "net.minecraftforge.gradle.forge" version "2.0.2"
}
version = "1.0.0"
group = "totemDefender"
archivesBaseName = "TotemDefender-1.8"
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceSets {
main {
output.resourcesDir = output.classesDir
}
}
minecraft {
version = "1.8-11.14.4.1563"
runDir = "eclipse"
mappings = "snapshot_20141130"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}
dependencies {
}
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,
'modid': archivesBaseName
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
Hello!
I've tried to build mod using gradle, but build failed with an exception:
gradlew build
I fixed it: delete the folder out, build and run the command "gradlew build". That's all.
I'm having this problem as well. What folder did you delete?
"out" and "build" if you use IDEA.
thanks dude! You solved my problem in 30 seconds