Skip to content

Add open-source 'basic' cache provider and revamp licensing documentation - #930

Merged
bigdaz merged 18 commits into
mainfrom
candidate-v61
Apr 3, 2026
Merged

bigdaz merged 18 commits into
mainfrom
candidate-v61

Conversation

@bigdaz

@bigdaz bigdaz commented Apr 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • New basic cache provider: Adds an open-source (MIT-licensed) caching implementation built on @actions/cache as an alternative to the proprietary Enhanced Caching. Users can opt in with cache-provider: basic on both setup-gradle and dependency-submission actions.
  • Revamped licensing & distribution docs: Replaces the verbose licensing notice block (previously shown in README, docs, and logs) with a friendlier callout and a new dedicated DISTRIBUTION.md covering component licensing, usage tiers, data privacy ("Safe Harbor"), and opt-out instructions.
  • Improved messaging: Enhanced Caching and Basic Caching each display concise, informative log messages and job summary notes instead of the previous wall-of-text license warning.
  • New integration tests: Adds integ-test-basic-cache-provider.yml workflow that seeds and verifies the basic cache provider across platforms, plus unit tests for BasicCacheService and getCacheService selection logic.
  • CI workflow reorganization: Dependency-submission integration tests extracted into their own reusable suite (suite-integ-test-dependency-submission.yml); sample project tests moved into the caching suite.

🤖 Generated with Claude Code

@bigdaz
bigdaz force-pushed the candidate-v61 branch 2 times, most recently from 6dba088 to b575423 Compare April 2, 2026 23:42
@bigdaz bigdaz changed the title Prepare release candidate for v6.1 Add open-source 'basic' cache provider and revamp licensing documentation Apr 2, 2026
bigdaz and others added 14 commits April 2, 2026 17:47
## Changes

- **DISTRIBUTION.md**: New comprehensive guide documenting the three
primary components (Action Runner, Basic Caching, Enhanced Caching),
their licenses, usage tiers for public/private repositories, and data
privacy terms
- **LICENSE**: Added note clarifying that the repository contains both
MIT-licensed open-source code and proprietary `gradle-actions-caching`
component
- **NOTICE**: Updated with reference to DISTRIBUTION.md and instructions
for using only MIT-licensed components via `cache-provider: standard`
- **README.md**: Added links and guidance to DISTRIBUTION.md, directing
users to component map and opt-out options

## Summary

Provides clear transparency on licensing, component breakdown, usage
tiers, and data privacy. Users can opt-out of proprietary components by
setting `cache-provider: standard` in their workflow configuration.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
## Overview
Adds a new open-source caching implementation (`basic` cache provider)
as an alternative to the commercial `premium` cache provider.

## Changes

### New Cache Provider Implementation
- **`cache-service-basic.ts`**: New basic cache service implementation
using GitHub Actions' `@actions/cache` API
  - Caches `~/.gradle/caches` and `~/.gradle/wrapper` directories
  - Cache key based on SHA-256 hash of Gradle build files
  - Supports read-only and write-only modes

### Configuration
- Added `cache-provider` input to both `setup-gradle` and
`dependency-submission` actions
  - Default: `premium` (existing commercial service)
  - New option: `basic` (open-source implementation)
- Added `CacheProvider` enum to configuration with `Basic` and `Premium`
options

### Cache Service Selection
- Updated `cache-service-loader.ts` to select `BasicCacheService` when
`cache-provider: basic` is specified
- Falls back to premium cache service for compatibility

### Documentation
- Updated README.md with information about the basic cache provider
- Added "Selecting a cache provider" section to setup-gradle.md
- Added cache provider documentation to dependency-submission.md

### Testing
- New integration test workflow: `integ-test-basic-cache-provider.yml`
  - Seed build to populate cache
  - Verify build using cached entries with `--offline`
- Comprehensive unit tests for BasicCacheService
- Unit tests for cache service loader selection logic

## Benefits
- Users can now opt for a fully open-source caching solution
- No commercial license required for basic cache provider
- Maintains backward compatibility with default premium provider

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…iders

Parameterize LicenseWarningCacheService to accept a summary string, allowing
it to wrap both BasicCacheService and the vendored enhanced service. Fill in
the BASIC/ENHANCED_CACHE_MESSAGE constants with plain-text log equivalents
of the markdown summary content.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ssage

The cache service loader already short-circuits with NoOpCacheService
when caching is disabled, so BasicCacheService never needs to handle
the disabled case. Also move the enhanced cache message logging before
loading the vendored library, and add a log message for the disabled path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Clarified licensing notice for gradle-actions-caching component and updated usage conditions.
Clarified future pricing for Enhanced Caching and emphasized commitment to keeping Basic Caching free for all users.
@bigdaz
bigdaz merged commit ff9ae24 into main Apr 3, 2026
129 checks passed
@bigdaz
bigdaz deleted the candidate-v61 branch April 3, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant