Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve compatibility with older GE plugins #97

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bigdaz
Copy link
Member

@bigdaz bigdaz commented Dec 28, 2024

With these changes, the develocity-agent-adapters library will function with a wider range of com.gradle.develocity, com.gradle.enterprise and com.gradle.build-scan plugin versions.

Specific issues that were addressed:

When combined with bigdaz/common-custom-user-data-gradle-plugin@162c0b4, these improvements will result in a CCUD plugin that is compatible with GradleEnterprise/BuildScan plugins back to versions 1.15 and 3.0.

As a follow up to these changes, we should probably remove the old BuildCacheAdapter API and implementations. These have been replaced by BuildCacheConfigurationAdapter.RemoteBuildCacheAdapter.

The DV adapter library verifies that an extension instance implements the correct
interface names. This commit fixes and issue where this check failed to account for
extension objects that were wrapped in nested structures.
New `BuildCacheConfigurationAdapter` provides a transparent adapter for local and remote
build cache configuration. The adapter supports the built-in `HttpBuildCache` implementation,
as well as GradleEnterprise and Develocity build caches.
Earlier versions of the GE BuildScanExtension did not have `getCapture()`,
but instead only had `captureFileFingerprints` to control which build elements
were captured.

This commit extends the adapter to support these earlier versions.
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.

ClassCastException for DevelocityBuildCache when instantiating DevelocityBuildCacheAdapter
3 participants