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-client-1.1.1.jar
/mygroup/mymodule/1.1.1/ivy-1.1.1.xml
If I put in the following gradle dependency line, it retrieves both jars. I want to only retrieve the mymodule-client.jar, but I can't figure out the incantation to make that work. Here's the line I have now. I've purposefully excluded transitive dependencies for other reasons.
compile ('mygroup:mymodule:1.1.11') {transitive=false}
Gradle docs seem to indicate there's a way to get just a specific artifact, but I can't get the incantation correct.
Here's the contents of the ivy file. Only the module/artifact names were changed and some standard dependency stuff removed for brevity.
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="mygroup" module="mymodule" revision="1.1.1" status="integration" publication="20120111091627"/>
<publications>
<artifact name="mymodule"/>
<artifact name="mymodule-client"/>
</publications>
<dependencies>
...
</dependencies>
</ivy-module>