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

ClassCastException for DevelocityBuildCache when instantiating DevelocityBuildCacheAdapter #94

Open
bigdaz opened this issue Dec 27, 2024 · 0 comments · May be fixed by #97
Open

ClassCastException for DevelocityBuildCache when instantiating DevelocityBuildCacheAdapter #94

bigdaz opened this issue Dec 27, 2024 · 0 comments · May be fixed by #97
Assignees

Comments

@bigdaz
Copy link
Member

bigdaz commented Dec 27, 2024

When the buildCache is configured to use remote(develocity.buildCache), and the develocity-agent-adapters library is loaded in a different classloader to the core DV plugin, then attempting to instantiate DevelocityBuildCacheAdapter will result in a ClassCastException. This is the result of the DevelocityBuildCache class not being shared between the 2 classloaders.

To fix this, we will need to proxy any build-cache adapter calls between the classloaders, in a similar way that we already to for the DevelocityExtention.

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 a pull request may close this issue.

1 participant