Застрял на выполнении setupDecompWorkspace (BUILD FAILED)! Что делать?

Версия Minecraft
1.12.1
12
0
setupDecompWorkspace не выполняется, что делать? Пытался смотреть вопросы на эту тему, но проблема осталась. jdk последней версии
Вот что в терминале:
Java:
14:10:33: Executing task 'setupDecompWorkspace'...

This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
[Fatal Error] gson-2.8.0.pom:2:1: Content is not allowed in prolog.
[Fatal Error] gson-2.8.0.pom:2:1: Content is not allowed in prolog.
[Fatal Error] authlib-1.5.25.pom:2:1: Content is not allowed in prolog.
:decompileMc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':decompileMc'.
> Could not resolve all dependencies for configuration ':forgeGradleMcDeps'.
   > Could not resolve com.google.code.gson:gson:2.8.0.
     Required by:
         com.yourname.modid:Forge:1.0
      > Could not resolve com.google.code.gson:gson:2.8.0.
         > Could not parse POM https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.0/gson-2.8.0.pom
            > Content is not allowed in prolog.
      > Could not resolve com.google.code.gson:gson:2.8.0.
         > Could not parse POM https://libraries.minecraft.net/com/google/code/gson/gson/2.8.0/gson-2.8.0.pom
            > Content is not allowed in prolog.
   > Could not resolve com.mojang:authlib:1.5.25.
     Required by:
         com.yourname.modid:Forge:1.0
      > Could not resolve com.mojang:authlib:1.5.25.
         > Could not parse POM https://libraries.minecraft.net/com/mojang/authlib/1.5.25/authlib-1.5.25.pom
            > Content is not allowed in prolog.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 34.142 secs
Content is not allowed in prolog.
14:11:08: Task execution finished 'setupDe
Делал я все по инструкции.
Сам я с явой почти не работал и особо даже не представляю что из себя представляет setupDecompWorkspace, да и вообще таски в целом, как я понимаю это команда которая скачивает файлы из вне. Так что если хотите помочь, то объясняйте подробно, чтоб я это запомнил раз и навсегда)
Буду признателен за помощь!
 
Решение
В файле build.gradle:
Gradle (Groovy):
repositories {
    mavenCentral()//Добаляешь эту строку если ее нет.
    //Теперь грэдл будет искать эту зависимость там, и по идее должен наткнуться на нее (Maven Repository: com.google.code.gson » gson » 2.8.0)
}
167
3
23
Код надо оформлять правильно!
В файле build.gradle:
Gradle (Groovy):
repositories {
    mavenCentral()//Добаляешь эту строку если ее нет.
    //Теперь грэдл будет искать эту зависимость там, и по идее должен наткнуться на нее (Maven Repository: com.google.code.gson » gson » 2.8.0)
}
 
Последнее редактирование модератором:
12
0
Сюда, на форум =_=
Ступил, извини.
Вот:
Gradle (Groovy):
buildscript {
    repositories {
        mavenCentral()
        jcenter()
        maven { url = "http://files.minecraftforge.net/maven" }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
    }
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


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

sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
compileJava {
    sourceCompatibility = targetCompatibility = '1.8'
}

minecraft {
    version = "1.12.2-14.23.1.2555"
    runDir = "run"

    // the mappings can be changed at any time, and must be in the following format.
    // snapshot_YYYYMMDD   snapshot are built nightly.
    // stable_#            stables are built at the discretion of the MCP team.
    // Use non-default mappings at your own risk. they may not always work.
    // simply re-run your setup task after changing the mappings to update your workspace.
    mappings = "snapshot_20171003"
    // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}

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

    // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
    //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'

    // the deobf configurations:  'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
    // except that these dependencies get remapped to your current MCP mappings
    //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
    //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'

    // 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 except the mcmod.info
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}
Прикольно! Из-за того что я пихал в сообщения ошибки из терминала как java код мне сделал предупреждение админ. Не думал что их волнуют такие мелочи! Да и вообще если почитать правила, то выясняется что я не мало так нарушил.
 
Последнее редактирование:
В общем, ребят, столкнулся с такой же проблемой, вдруг кому-то в будущем пригодится пишу на версии 1.7.10.
Вот что мне помогло
Переходите в папку с извлеченным Forge дальше в папки gradle>wrapper открываете файл "gradle-wrapper.properties" и в строке distributionUrl меняете версию, у меня стояла 2.0 я изменил на 3.0 и все заработало
Код:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
 
Последнее редактирование:
Сверху