is there a spot that I can stick data for gradle i...
# community-support
c
is there a spot that I can stick data for gradle into that is not the build, but also not the configuration cache? Can I write to
<repo>/.gradle
? is there something like project layout that I can use to access that (presuming that directory can be configured to be elsewhere)? data needs to last longer than a build, but it only affects any singular repository. I don't think putting it in
build
is a good idea because then the benefit is lost on CI. Ideally it should also live somewhere the github action will "cache"
v
Iirc that directory should be
gradle.startParameter.projectCacheDir
. But if so, its JavaDoc says > Note that this directory is managed by Gradle, and it assumes full ownership of its contents. Plugins and build logic should not store or modify any files or directories within this cache directory.
c
roflol, yeah, that sounds about right
well.. I suppose I could put it in build where it'll be preserved by the build cache? I need to read how it works for something to get build cached.
which, I'd think should be good enough...
depending on how those are expired... sigh
oh, right, that's problematic because it is only for tasks
F* it, I'll just write it to
.var/gradle
...