You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a project applies the com.gradle.develocity plugin (but not the CCUD plugin), and that project is configured to use develocity.buildCache, applying the CCUD plugin via init-script will cause the build to fail.
* What went wrong:
Failed to apply plugin class 'com.gradle.CommonCustomUserDataGradlePlugin'.
> com.gradle.develocity.agent.gradle.internal.a.b_Decorated cannot be cast to com.gradle.develocity.agent.gradle.buildcache.DevelocityBuildCache
Applying the CCUD plugin directly to the project does not cause this failure. However, the issue to that the Develocity and CCUD plugins are loaded in different Classloaders, and the DevelocityBuildCache type is not shared.
This issue can be fixed in the CCUD plugin by marshalling calls between the 2 classloaders.
The text was updated successfully, but these errors were encountered:
bigdaz
changed the title
Applying CCUD plugin to existing DV project using develocity.buildCache will fail
Build fails when injecting CCUD plugin into existing DV project using develocity.buildCacheNov 18, 2024
bigdaz
transferred this issue from gradle/develocity-ci-injection
Dec 12, 2024
bigdaz
transferred this issue from gradle/common-custom-user-data-gradle-plugin
Dec 12, 2024
If a project applies the
com.gradle.develocity
plugin (but not the CCUD plugin), and that project is configured to usedevelocity.buildCache
, applying the CCUD plugin via init-script will cause the build to fail.For example given this
settings.gradle.kts
:The build fails with this exception (scan):
Applying the CCUD plugin directly to the project does not cause this failure. However, the issue to that the Develocity and CCUD plugins are loaded in different Classloaders, and the
DevelocityBuildCache
type is not shared.This issue can be fixed in the CCUD plugin by marshalling calls between the 2 classloaders.
Reproducer: https://github.com/bigdaz/develocity-ci-injection-issue-19
The text was updated successfully, but these errors were encountered: