I want to extend a custom Dependencies implementation with my DependencyCollector, but when I use this code, it does not add the DependencyCollector to the custom Dependencies block but to the project ones (and the objects.dependencyCollector method is discouraged.):
Copy code
val api = objects.dependencyCollector()
(myBase.dependencies as org.gradle.api.plugins.ExtensionAware).extensions.add("api", api)
Is adding a new dependencyCollector to some ExtensionAware somehow supported?