Improved reporting on shared build services with same FQCN but different class #30274
Labels
a:feature
A new functionality
in:build-services
Shared Build Services
re:comprehensibility
reasonable errors and warnings, clear dsl, mental overload
Expected Behavior
It happens regularly that questions come up like
This is typically caused by a plugin being applied to two sibling projects and then using a shared build service.
The first project register the service, the second gets the previous registration but receives an instance of the class on the other class loader so cannot use the service.
It would be nice if on getting a service, and / or setting a provider, and the expected and actual type are not equal but have the same FQCN, a more actionable message is presented like "add the plugin with problem with
apply false
to the root build script" or something similar.The text was updated successfully, but these errors were encountered: