Q: Setting a configuration that lives as a parent of the compile configuration in Gradle I added a custom configuration to my plugin
Configuration customCompile = project.configurations.create("customCompile")
        .setVisible(false).setTransitive(true)

I want to do something like 
configuration.compile.addExtendsFrom(customCompile)

So that in my plugin, I can isolate certain dependencies to add to the classpath of something I'm running (with `project.configurations.customCompile).  I want them to remain on the regular compile path as well.
What I did was this :
Configuration compile = project.configurations.getByName('compile')
Set updated = WrapUtil.asSet(compile.getExtendsFrom()) // returns a immutable set
updated.add(customCompile)
compile.setExtendsFrom(updated)

It works, but it feels a little convoluted, extendsFrom seems to have the opposite meaning of inheritance that I'm used to with java classes.  Is there a better way to be doing this?

A: a.extendsFrom(b) is analogue to "a inherits from b", and you can simply do configurations.compile.extendsFrom(customCompile). (Not addExtendsFrom or getExtendsFrom.)
