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

Adapters fail to recognise GradleEnterpriseExtension prior to version 3.11 #95

Open
bigdaz opened this issue Dec 27, 2024 · 0 comments
Open
Assignees

Comments

@bigdaz
Copy link
Member

bigdaz commented Dec 27, 2024

Due to the way the extension is inspected for implemented interfaces, the adapters library will fail to recognise a GradleEnterpriseExtension from plugin versions prior to 3.11.

The failure appears as:

* What went wrong:
An exception occurred applying plugin request [id: 'com.gradle.common-custom-user-data-gradle-plugin', version: '2.0.2']
> Failed to apply plugin 'com.gradle.common-custom-user-data-gradle-plugin'.
   > The supplied object of type 'com.gradle.enterprise.gradleplugin.internal.extension.DelegatingGradleEnterpriseExtension_Decorated' is not a Gradle Enterprise extension object

This can be addressed by inspecting the interfaces implemented by all superclasses of the extension type, instead of assuming a particular class structure.

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

No branches or pull requests

1 participant