我试图设置我的改装环境,当我执行“gradlew setupDecompWorkSpace”时,发生了这种情况:
WARNING: You are using an unsupported version of ForgeGradle.
Please consider upgrading to ForgeGradle 4 and helping in the efforts to get old versions working on the modern toolchain.
See https://gist.github.com/TheCurle/fe7ad3ede188cbdd15c235cc75d52d4a for more info on contributing.
#################################################
ForgeGradle 1.2.2-g2ea0336
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:extractMcpData UP-TO-DATE
:getVersionJson
Unexpected reponse 403 from http://s3.amazonaws.com/Minecraft.Download/versions/1.7.10/1.7.10.json
:extractUserDev UP-TO-DATE
:genSrgs SKIPPED
:extractNatives UP-TO-DATE
:getAssetsIndex
Unexpected reponse 403 from https://s3.amazonaws.com/Minecraft.Download/indexes/1.7.10.json
:getAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':getAssets'.
> java.lang.NullPointerException (no error message)
* 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: 4.862 secs
C:\Users\Dimitri\eclipse-workspace\forge-1.7.10-10.13.4.1614-1.7.10-src>
我尝试将 gradle 版本从 2.0 更改为 gradle-wrapper.properties 到 2.6,只是持续时间更长。
我不是这方面的专业人士,但当我遇到这个问题时,我的解决方法是用anatawa12的fork替换forge gradle。我认为发生的情况是在 forge 更新之一中更改了一些 url,并且在更改中未考虑 forge 1.7.10。
新的gradle:https://github.com/anatawa12/ForgeGradle-1.2
如何解决问题方法一:
关注:https://github.com/anatawa12/ForgeGradle-example#how-to-replace-forgegradle-12-with-anatawa12s-fork
编辑 Gradle 包装器以使用 gradle 4.4.1 或更高版本。
如何解决问题方法2:
下载并使用anatawa12的示例gradle模板(与cmd的命令相同):
https://github.com/anatawa12/ForgeGradle-example/archive/master.zip
还是不行, 当我做 梯度任务
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'examplemod'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
> Could not get resource 'https://maven.minecraftforge.net/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> Could not GET 'https://maven.minecraftforge.net/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
> Could not get resource 'https://plugins.gradle.org/m2/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> Could not GET 'https://jcenter.bintray.com/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
> Unable to load Maven meta-data from https://maven.minecraftforge.net/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://maven.minecraftforge.net/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
> Unable to load Maven meta-data from https://plugins.gradle.org/m2/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://jcenter.bintray.com/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
> Could not get resource 'https://maven.minecraftforge.net/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> Could not GET 'https://maven.minecraftforge.net/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
> Could not get resource 'https://plugins.gradle.org/m2/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> Could not GET 'https://jcenter.bintray.com/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
当我这样做时 gradlew setupDecompworkspace
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'examplemod'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
> Could not get resource 'https://maven.minecraftforge.net/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> Could not GET 'https://maven.minecraftforge.net/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
> Could not get resource 'https://plugins.gradle.org/m2/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> Could not GET 'https://jcenter.bintray.com/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
> Unable to load Maven meta-data from https://maven.minecraftforge.net/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://maven.minecraftforge.net/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
> Unable to load Maven meta-data from https://plugins.gradle.org/m2/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://jcenter.bintray.com/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
> Could not get resource 'https://maven.minecraftforge.net/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> Could not GET 'https://maven.minecraftforge.net/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
> Could not get resource 'https://plugins.gradle.org/m2/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> Could not GET 'https://jcenter.bintray.com/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
当我这样做时 格拉德卢日食
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'examplemod'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
> Could not get resource 'https://maven.minecraftforge.net/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> Could not GET 'https://maven.minecraftforge.net/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:RetroGuard:3.6.6.
> Could not get resource 'https://plugins.gradle.org/m2/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> Could not GET 'https://jcenter.bintray.com/de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
> Unable to load Maven meta-data from https://maven.minecraftforge.net/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://maven.minecraftforge.net/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT.
> Unable to load Maven meta-data from https://plugins.gradle.org/m2/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://jcenter.bintray.com/de/oceanlabs/mcp/mcinjector/3.2-SNAPSHOT/maven-metadata.xml'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
Required by:
project : > com.anatawa12.forge:ForgeGradle:1.2-1.1.1
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
> Could not get resource 'https://maven.minecraftforge.net/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> Could not GET 'https://maven.minecraftforge.net/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve net.minecraftforge:Srg2Source:4.2.7.
> Could not get resource 'https://plugins.gradle.org/m2/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> Could not GET 'https://jcenter.bintray.com/net/minecraftforge/Srg2Source/4.2.7/Srg2Source-4.2.7.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
有人可以帮助我吗,我从 github 获取了最新的文件(https://github.com/anatawa12/ForgeGradle-1.2)