Skip to content

Commit 07f6bec

Browse files
committed
Keep Gradle setup-action v5
Some project still use and want to stick with v5. Version 6 of gradle/actions changes the licensing model for the default caching behavior used by setup-gradle. The action repository is still mostly MIT licensed, but the default "enhanced" caching provider uses the [proprietary gradle-actions-caching](https://github.com/gradle/actions/blob/v6.1.0/licenses/gradle-actions-caching-license.txt) component. Gradle [documents](https://github.com/gradle/actions/blob/v6.1.0/DISTRIBUTION.md#3-usage-tiers) enhanced caching for public repositories as free, and private repository use as currently available in a free preview. The same documentation also says Gradle plans usage-based pricing for undefined "large-scale commercial organizations". Use of the proprietary caching component is governed by [Gradle's Terms of Use](https://gradle.com/legal/gradle-technologies-terms-of-use/), which may change over time. Version 6 also provides an opt-in ["basic"](https://github.com/gradle/actions/blob/v6.1.0/docs/setup-gradle.md#basic-caching) caching provider under the MIT license, but it is not equivalent to the default enhanced provider. Basic caching uses actions/cache directly and lacks [enhanced](https://github.com/gradle/actions/blob/v6.1.0/docs/setup-gradle.md#enhanced-caching) caching's fine-grained Gradle User Home caching, intelligent cleanup, deduplication, or restore-key behavior. For Polaris CI, especially the incremental cache workflow, that would likely mean lower cache reuse and more cache growth over time. This is difficult for Polaris because contributors may run CI in private repositories, including private forks used for security work. With v6 defaults, those workflows would depend on proprietary, mutable terms whose future private repository terms and limits are not yet defined. Switching v6 to basic caching avoids the proprietary component, but gives up caching behavior that the workflow currently relies on.
1 parent fa91fde commit 07f6bec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

actions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ gradle/actions/dependency-submission:
466466
3f131e8634966bd73d06cc69884922b02e6faf92:
467467
tag: v6.2.0
468468
gradle/actions/setup-gradle:
469+
0723195856401067f7a2779048b490ace7a47d7c:
470+
tag: v5.0.2
471+
expires_at: 2028-06-20
469472
39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f:
470473
tag: v6.0.1
471474
expires_at: 2026-07-05

0 commit comments

Comments
 (0)