You can use provided with the Android plugin. With the java plugin you can create a provided configuration manually <http://forums.gradle.org/gradle/topics/how_do_i_best_define_dependencies_as_provided> .
On Sun, Jun 22, 2014 at 1:32 PM, Prateek Srivastava <[email protected]> wrote: > Maven lets you define optional dependencies for projects ( > https://github.com/square/picasso/blob/master/picasso/pom.xml#L18). > Is this available with the Android plugin (couldn't find it for the java > plugin either)? > > *Optional dependencies* - If project Y depends on project Z, the owner > of project Y can mark project Z as an optional dependency, using the > "optional" element. When project X depends on project Y, X will depend only > on Y and not on Y's optional dependency Z. The owner of project X may then > explicitly add a dependency on Z, at her option. (It may be helpful to > think of optional dependencies as "excluded by default.") > > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
