badass-runtime-plugin icon indicating copy to clipboard operation
badass-runtime-plugin copied to clipboard

Cache JDKs in a central place

Open Vampire opened this issue 4 years ago • 2 comments
trafficstars

It would be nice if by default downloaded JDKs are cached in a central plac,e so that you don't have 10 times the same downloaded and unpacked JDK on your disk just because you build 10 projects. The Gradle user home would maybe be a good (default) choice for such a central place.

I know that I can currently configure the downloadDir, but for a central cross-project storage I think a bit more effort is needed than just to set that central place. Maybe something with locks and checksums or similar.

Vampire avatar Oct 28 '21 15:10 Vampire

I am using the Kotlin build script, and I can't pass in the downloadDir parameter since it's expecting a Groovy closure. The comment above is my primary reason to change the download dir, but I can't do that right now.

jsixface avatar Jul 13 '22 20:07 jsixface

closureOf { ... } or delegateClosureOf { ... } should probably work.

Vampire avatar Jul 13 '22 21:07 Vampire