Recommend first party Gradle action instead of `cache: gradle`
Description:
Deprecate/remove cache: gradle option in favor of a first party Gradle action.
If this is not an option, at least mention gradle/actions/setup-gradle in the documentation AND action.yml description.
Justification:
setup-java tries to do too much. gradle/actions/setup-gradle (ex. gradle-build-action) is a fully featured, advanced GitHub Action for caching Gradle builds outputs. It now includes support for things that'll likely never be part of setup-java (e.g. configuration cache caching), leaving users confused and using potentially sub-optimal caching strategies. (example: https://github.com/gradle/gradle/issues/13510#issuecomment-1913366548)
Are you willing to submit a PR? I'll let maintainers handle deprecations / removals, as that's a complex process.
Hello @TWiStErRob
Thank you for creating this feature request. We will investigate it and get back to you as soon as we have some feedback.
Relevent doc: https://github.com/gradle/actions/blob/v3.4.2/docs/setup-gradle.md#incompatibility-with-other-caching-mechanisms