setup-java icon indicating copy to clipboard operation
setup-java copied to clipboard

Recommend first party Gradle action instead of `cache: gradle`

Open TWiStErRob opened this issue 1 year ago • 3 comments

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.

TWiStErRob avatar Jan 28 '24 10:01 TWiStErRob

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.

HarithaVattikuti avatar Jan 29 '24 17:01 HarithaVattikuti

Relevent doc: https://github.com/gradle/actions/blob/v3.4.2/docs/setup-gradle.md#incompatibility-with-other-caching-mechanisms

daniel-shuy avatar Jun 20 '24 06:06 daniel-shuy