actions icon indicating copy to clipboard operation
actions copied to clipboard

Cache cleanup is incompatible with configuration-cache reuse

Open bigdaz opened this issue 1 year ago • 0 comments

When setting gradle-home-cache-cleanup: true, the action will attempt to remove all unused files from Gradle User Home before saving the state. When running a build with state loaded from the configuration-cache, many files in Gradle User Home (eg dependency jars) are not necessarily recorded as being used during the build.

Taken together, this means that after a successful build with configuration-cache reuse, the saved Gradle User Home will have no dependencies. This can result in a ClassNotFoundException failure in subsequent builds.

bigdaz avatar Jan 13 '24 18:01 bigdaz