This message was deleted.
# configuration-cache
s
This message was deleted.
c
Nothing more than setting the env variable, in the specified format, is required. What do you believe is missing?
z
What cache directories should be uploaded and downloaded?
Does gradle recommend uploading/downloading or a shared network volume? etc
c
That has nothing to do with the encryption key. Iirc the docs indicate that cc is not relocatable, though it does work across identical machines (ie CI runners). Checkout the gradle-build-action GitHub action sources for internal details.
z
the encryption key allows for the second case you mentioned (identical paths on CI runners), and my post is suggesting documenting a workflow for doing that. > Checkout the gradle-build-action GitHub action sources for internal details. Sure, but that this is not a good substitute for documentation.
c
Cc is documented as not relocatable - if you want to share it use a Gradle-provided mechanism (gradle-build-action) or figure out the internals.
z
It's maybe worth pointing out that the docs for the new encryption key env also don't link/suggest any gradle-provided mechanisms like the github actions. I'm just asking for more docs and guidance on this page, first-party or otherwise.
I also think it's a little unhelpful/circular just referencing a doc that I'm suggesting could be improved, so mind if I ask if we just park it here and leave it to gradle folks to take up if they're interested?
v
we just park it here and leave it to gradle folks to take up if they're interested?
It is very unlikely it is picked up when parking it here, as this is mainly a community Slack. I'd suggest you create a documentation issue on GitHub, then the chances for a pick-up are much higher.
t
It's always possible to tag @Daz DeBoer (maintainer of said actions) as FYI, but otherwise, if you had created an issue, I'd like to follow it, @Zac Sweers!
d
The
setup-gradle
action will only restore the configuration cache if everything in
<gradle-user-home>/caches
is restored. The configuration-cache data links directly to files in this directory, and I don't have a good insight into exactly which ones. It's certainly more than downloaded dependencies, and I think it includes artifact transforms and possibly compiled build scripts. The CC entry also points relies on the output of any included builds that impact the build-script classpath: see https://github.com/gradle/actions/issues/21
So there's still no supported mechanism to reused CC entries between machines. The
setup-gradle
action hacks in some support, much like it hacks in support for cleaning the Gradle User Home directory. And by "hack", I really mean it 🙂