Automattic / a8c-ci-toolkit-buildkite-plugin

A caching plugin that can be invoked from your build script.
21 stars 5 forks source link

Use dirname & basename for Gradle dependency cache logic #26

Closed oguzkocer closed 2 years ago

oguzkocer commented 2 years ago

This PR uses dirname & basename for figuring out where the Gradle dependency cache should be saved/restored from instead of using GRADLE_RO_DEP_CACHE_BASE_FOLDER & GRADLE_RO_DEP_CACHE_FOLDER_NAME env vars.

We could do this without depending on dirname & basename, but this is clearer than pure Bash solution, so I think the tradeoff is worth it.