On Fri, Dec 4, 2009 at 09:36, Shay Banon <[email protected]> wrote:
Hi, Is there a way to try and get this to work with 0.8? Cheers, Shay Adam Murdoch-2 wrote:[email protected] wrote: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_emailYou 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' } }The plan is currently something like this, where you will be able to define a configuration as a transformation of another configuration. The transformation might switch transitivity off, or exclude some dependencies, or replace the main jar with the source jar, or (for project deps) replace the main jar with the classes dir, or whatever. The transformed configuration would be live, so that it tracks changes to the original configuration. This is possibly a Gradle 0.9 feature, or more likely a Gradle 0.10 feature.Or maybe you could just have a sources configuration that automatically looks for the 'source' classifier, that would work nicely too.We might have some convenience transformations for common things, like getting the source jars for a configuration. We could combine them with rules, too, so you could use configurations.<configName>Source to get the source jars for the configuration, for example configurations.compileSource or configurations.runtimeSource. -- Adam Murdoch Gradle Developer http://www.gradle.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email-- View this message in context: http://old.nabble.com/Downloading-*-sources-tp26529227p26635944.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'd have to script it. You'd need to copy all of the dependencies (from compile I would assume), create a new configuration, add those dependencies and add the sources classifier. -- 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
signature.asc
Description: OpenPGP digital signature
