Exclusion of transitive dependency artifacts by type

Hello,

in my company we use Ivy as dependency repository. Besides JAR artifacts we also store ZIP artifacts.

I’d like to depend on the JAR artifact and to exclude all ZIP artifacts (also for transitive dependencies)

I know that it is possible to exclude dependencies by module name and group name.

I also know that one can specify the type (in my case JAR) for the direct dependency.

testCompile( group: 'XXX, name: 'XXXClientLibrary', version: 'latest.development' ) {
        artifact {
            name = 'XXXClientLibrary'
            type = 'jar'
        }
    }

but as far as I understood this wouldn’t affect transitive dependencies.

So my question is: Is it possible to exclude artifacts by type (e.g. ZIP) for dependencies including transitive dependencies?