ForgeGradle-example
ForgeGradle-example copied to clipboard
How can I obtain versionJsons\index.json without generating them?
> Task :extractMcpData
> Task :getVersionJsonIndex
> Task :getVersionJson FAILED
3 actionable tasks: 3 executed
Connection refused: connect
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':getVersionJson'.
> Error while evaluating property 'url' of task ':getVersionJson'
> java.io.FileNotFoundException: D:\WorkTools\Gradle\.gradle\caches\minecraft\versionJsons\index.json (系统找不到指定的文件。)
* 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 3s
Which version of Gradle do you use?
it looks downloading index json at https://piston-meta.mojang.com/mc/game/version_manifest.json in task getVersionJsonIndex. If you're in some firewall (like GFW of china) could you check the index is accessible with browser without proxy settings?