Jump to content

Failed to build a developing environment


KanbeKotori

Recommended Posts

I‘m a Minecraft mod developer from China.

Just now I tried to make a newproject so I typed "gradlew.bat setupDecompWorkspace" as usual, but today it turned out to be

=========

FAILURE: Build failed with an exception.

 

* Where:

Build file '(my mod)\build.gradle' line: 18

 

* What went wrong:

A problem occurred evaluating root project '(my mod)'.

> java.io.EOFException: End of input at line 46014 column 5

========

This thing has never happened before.

Thus I want to know how to solve this problem.

 

my build.gradle file:

==========

buildscript {

    repositories {

        mavenCentral()

        maven {

            name = "forge"

            url = "http://files.minecraftforge.net/maven"

        }

        maven {

            name = "sonatype"

            url = "https://oss.sonatype.org/content/repositories/snapshots/"

        }

    }

    dependencies {

        classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'

    }

}

 

apply plugin: 'forge' //this is line 18

 

version = "1.0"

group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html

archivesBaseName = "modid"

 

minecraft {

    version = "1.7.10-10.13.4.1614-1.7.10"

    runDir = "eclipse"

}

 

dependencies {

    // you may put jars on which you depend on in ./libs

    // or you may define them like so..

    //compile "some.group:artifact:version:classifier"

    //compile "some.group:artifact:version"

     

    // real examples

    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env

    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

 

    // for more info...

    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html

    // http://www.gradle.org/docs/current/userguide/dependency_management.html

 

}

 

processResources

{

    // this will ensure that this task is redone when the versions change.

    inputs.property "version", project.version

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

 

    // replace stuff in mcmod.info, nothing else

    from(sourceSets.main.resources.srcDirs) {

        include 'mcmod.info'

               

        // replace version and mcversion

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

    }

       

    // copy everything else, thats not the mcmod.info

    from(sourceSets.main.resources.srcDirs) {

        exclude 'mcmod.info'

    }

}

Link to comment
Share on other sites

Minecraft 1.7.10 is no longer supported on this forum, use 1.10.2.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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