I\'ve got an Ivy repository with multiple published artifacts, something like this:
/mygroup/mymodule/1.1.1/mymodule-1.1.1.jar
/mygroup/mymodule/1.1.1/mymodule-c
The Ivy module descriptor doesn't assign the artifacts to different configurations, hence it's not possible to retrieve them independently. If all you want is to only put one of the two artifacts on the compile class path, something like the following should work:
configurations {
mymodule
}
dependencies {
mymodule 'mygroup:mymodule:1.1.1'
compile configurations.mymodule.filter { it.name == 'mymodule-client-1.1.1.jar' }
}