Custom Dependency Configuration with extendsFrom Hierarchy

Hi,

I have defined a custom dependency configuration

configurations {
    appServerLib{
        extendsFrom providedCompile
    }
}

and some dependencies

dependencies {
    providedCompile 'javax:javaee-api:7.0'
    appServerLib 'joda-time:joda-time:2.6'
}

How can I get all appServerLib dependencies, but without the providedCompile dependencies? I still want to keep that appServerLib extends from providedCompile.

Thanks, Fabian

A ‘Configuration’ is just a ‘FileCollection’ so you can do something like this:

configurations.appServerLib - configurations.providedCompile

Oh… that simple… Thanks, Mark!