On Thu, Nov 26, 2009 at 06:10, Shay Banon <[email protected]> wrote:

Hi,

 Is there a way to tell Gradle to download the sources of the jar files as
well? I looked at this thread:
http://old.nabble.com/Dowloading-*-sources.jar-td22064471.html#a22064471,
but it looks like Artifact is no longer there, and wondered if there is a
better way to do this.

Cheers,
Shay
--
View this message in context: 
http://old.nabble.com/Downloading-*-sources-tp26529227p26529227.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




You could create a new config and add the deps with the "sources" classifier.  
For something like this I think it would be really helpful to be able to modify deps in 
bulk something like

configurations {
 sources.extendsFrom compile
 sources.addClassifier 'source'
}

or
configurations {
 sources.extendsFrom compile
}

dependencies {
 ...
 sources.each { it.addClassifier 'sources' }
}

Or maybe you could just have a sources configuration that automatically looks 
for the 'source' classifier, that would work nicely too.

--
Jason Porter
Real Programmers think better when playing Adventure or Rogue.

PGP key id: 926CCFF5
PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5
PGP key available at: keyserver.net, pgp.mit.edu

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to