mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 05:05:20 -05:00
Rewrite download utils (#681)
- eTag support (It seems Mojang's CDN and our meta/maven do not support this right now) - Age based caching. - Sha1 based caching. - HTTP(S) proxy settings should now be respected. - The downloader has better awareness of offline mode and refresh deps, cleaning up the calling code a bit. - Uses the new Java 11 HTTP client, provides async support for downloading multiple files - Progress handling (TODO needs hooking up to gradle) - Better compression support. Handled by [Methanol](https://mizosoft.github.io/methanol/) - Unit tested with a real web server.
This commit is contained in:
@@ -183,7 +183,7 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
|
||||
|
||||
return getWorkerExecutor().processIsolation(spec -> {
|
||||
spec.forkOptions(forkOptions -> {
|
||||
forkOptions.setMaxHeapSize("%dm".formatted(decompilerOptions.getMemory().get()));
|
||||
forkOptions.setMaxHeapSize(String.format(Locale.ENGLISH, "%dm", decompilerOptions.getMemory().get()));
|
||||
forkOptions.systemProperty(WorkerDaemonClientsManagerHelper.MARKER_PROP, jvmMarkerValue);
|
||||
});
|
||||
spec.getClasspath().from(getClasspath());
|
||||
|
||||
Reference in New Issue
Block a user