ForgeGradle-example icon indicating copy to clipboard operation
ForgeGradle-example copied to clipboard

How can I obtain versionJsons\index.json without generating them?

Open cocosoys opened this issue 1 year ago • 1 comments

> 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

cocosoys avatar Jun 11 '25 02:06 cocosoys

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?

anatawa12 avatar Jun 11 '25 02:06 anatawa12