SpongePowered / VanillaGradle

A toolchain for Minecraft: Java Edition that builds a workspace to interact with the game using the official mappings provided to the public by Mojang Studios.
MIT License
89 stars 18 forks source link

Don't download metadata every run #18

Closed zml2008 closed 3 years ago

zml2008 commented 3 years ago

Version manifests are re-downloaded every run currently, which means internet connections are needed to build, and any issue with Mojang servers would cause builds to fail right away.

We should be able to download these to some sort of local cache instead.

Zidane commented 3 years ago

Can cache the json blob as a file locally. We could re-download it every 30 mins?

zml2008 commented 3 years ago

That sounds reasonable? Or maybe set it to something longer (6 hours)? with a gradle (or system) property to force redownloads (for those speedy updates)

Zidane commented 3 years ago

Sounds good to me.