Gradle analog to Ivy dependency <include> ?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Gradle analog to Ivy dependency <include> ?

evgenyg
Hi,

In "ivy.xml" I have the following dependency declaration:

<dependencies>
    <dependency org="org" name="bt343" rev="lastSuccessful">
        <include name="core/annotations" ext="jar"/>
    </dependency>
</dependencies>

How can I add this "inclide" part to Gradle? I can go

dependencies {
    compile 'org:bt343:lastSuccessful'
}

but then it downloads all dependencies while I need only one.

Thanks!

Best regards,
Evgeny
evgeny-goldin.com
Reply | Threaded
Open this post in threaded view
|

Re: Gradle analog to Ivy dependency <include> ?

evgenyg
Reply | Threaded
Open this post in threaded view
|

Re: Gradle analog to Ivy dependency <include> ?

Nikita Skvortsov
Evgeny,

Looks like this should help:

dependencies {
    compile('org:bt343:lastSuccessful') {
      artifact {
          name='core-upsource/annotations';
          type = 'jar'
      }
    }
}



On Thu, May 24, 2012 at 3:00 PM, evgenyg <[hidden email]> wrote:
Here's my "build.gradle":
https://github.com/evgeny-goldin/teamcity-download-examples/blob/master/build.gradle

-----
Best regards,

Evgeny

evgeny-goldin.com

--
View this message in context: http://gradle.1045684.n5.nabble.com/Gradle-analog-to-Ivy-dependency-include-tp5709837p5709838.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Nikita Skvortsov

Reply | Threaded
Open this post in threaded view
|

Re: Gradle analog to Ivy dependency <include> ?

evgenyg
Right, it works. Thank you!
Best regards,
Evgeny
evgeny-goldin.com
Reply | Threaded
Open this post in threaded view
|

Re: Gradle analog to Ivy dependency <include> ?

evgenyg