Repository navigation
Add open-source 'basic' cache provider and revamp licensing documentation - #930
Merged
Merged
Conversation
bigdaz
force-pushed
the
candidate-v61
branch
2 times, most recently
from
April 2, 2026 23:42
6dba088 to
b575423
Compare
## 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
basiccache provider: Adds an open-source (MIT-licensed) caching implementation built on@actions/cacheas an alternative to the proprietary Enhanced Caching. Users can opt in withcache-provider: basicon bothsetup-gradleanddependency-submissionactions.integ-test-basic-cache-provider.ymlworkflow that seeds and verifies the basic cache provider across platforms, plus unit tests forBasicCacheServiceandgetCacheServiceselection logic.suite-integ-test-dependency-submission.yml); sample project tests moved into the caching suite.🤖 Generated with Claude Code