Cannot get gradle to publish a module with dependency exclusions to Ivy


(Shane Frueh) #1

Gradle version 2.3

dependencies {
    compile ('org.hello:world:1.0.0'){
        exclude group: 'org.exclude', module: 'me'
    }
}

Expecting this when published

<dependencies>
    <dependency org="org.hello" name="world" rev="1.0.0">
        <exclude org="org.exclude" name="me"/>
    </dependency>
</dependencies>

Got this when published, instead.

<dependencies>
    <dependency org="org.hello" name="world" rev="1.0.0"/>
</dependencies>

Generation of ivy descriptors with excluded transitive dependencies
(Benjamin Muschko) #2

Could you please post your question on the new forum? https://discuss.gradle.org/

Are you using the Ivy Publishing plugin?