Add a lock file around building the loom cache. Regenerate if the lock file exists.

This helps to ensure that failed or canceled builds do not cause the cache to be left in an undetectable invalid state.
This commit is contained in:
modmuss50
2022-07-30 19:21:56 +01:00
parent c7e10a596e
commit 3913c2e897
17 changed files with 97 additions and 35 deletions

View File

@@ -109,4 +109,8 @@ public interface LoomGradleExtension extends LoomGradleExtensionAPI {
void addTransitiveAccessWideners(List<AccessWidenerFile> accessWidenerFiles);
DownloadBuilder download(String url);
boolean refreshDeps();
void setRefreshDeps(boolean refreshDeps);
}