On 8 July 2014 at 5:34:17 am, KARR, DAVID (dk0...@att.com) wrote:

I'm just checking the accuracy of a statement in the user guide. 

The set of dependencies in the "runtime" configuration includes the 
dependencies specified in the "runtime" section in addition to the dependencies 
specified in the "compile" section (I use the terms "configuration" and 
"section" to distinguish between the final dependency list used at build time, 
compared to the list of dependencies specified in the build script. 
The use of ‘section’ here is confusing.

The user guide actually says "By default, also includes the compile time 
dependencies." If you say "by default", that usually means you can change it. 
So, is there any way in the "runtime" configuration to exclude dependencies 
that were specified in the "compile" configuration? 
Yes…

configurations {

  runtime.extendsFrom -= [compile]

}


— 

Luke Daley
http://www.gradleware.com

Reply via email to