Dependency set doubles dependency - e.g. for maven publication

When using the war plugin the providedCompile configuration gets introduced. When I then add the maven-publish plugin and simply do a “from” dependencies from the providedCompile configuration get doubled during the “withType()” call. I’m not really at the end of a full analysis, but the delegate of org.gradle.api.internal.DelegatingDomainObjectSet does this in my project.

This is (together with the fact that these dependencies are by default generated as runtime dependencies in the generated pom and not provided which I can easily fix in the build script.) unexpected behaviour since all the dependencies are held in sets.

You can find a stripped down example build.gradle illustrating this in my github space.