I have a custom configuration. Is there a way to add it to the compile configuration?

I have a custom configuration called “supplementalCompile”

How do I add it to the compile config?

This doesnt’ work, but demonstrates what I’m looking for:

supplementalCompile(group: 'javax.ws', name: 'rs-api', version: '2.0.0')
    supplementalCompile.each{
        compile(it)
    }
configurations {
  compile.extendsFrom supplementalCompile
}