However when I try to resolve the configuration, it does not contain the files of the runtimeClasspath:
doFirst {
println newConfiguration.resolve()
}
Returns an empty array. Is there a way to create a configuration from the runtime classpath? I would like to then to remove a view dependencies and their transitive dependencies using newConfiguration.exclude.
It seems a detached configurations cannot extend from another configuration.
I don’t know whether this is inteded, but if you make the new configuration a named configuration, it works.
You should probably report that as issue.