On 28/07/2011, at 2:09 AM, Nikita Skvortsov wrote:

> Hello All,
> 
> I am trying to make use of 'BuildDependents' feature of Java plugin.
> 
> Documentation states following:
> 
> > The buildDependents task also tests all the projects that have a project 
> > lib dependency (in the testRuntime configuration) on the specified project
> 
> I have a project layout like this
> 
> _ProjectRoot
> ____ProjectA
> ____ProjectB
> ____ProjectC
> ____ProjectD
> 
> B depends on A, 
> D depends on C, 
> Both A and C depends on Root (you can find full build.gradle further in the 
> letter)
> 
> When starting :RootProject:buildDependents I expect all 5 projects being 
> fully built and tested
> But only Root, A and C are built and tested. This seems incorrect, as changes 
> to the Root can affect B and D as well.

That's right. The buildDependents task is supposed to be transitive. This is a 
bug (http://issues.gradle.org/browse/GRADLE-1695), and is fixed in the master 
branch now.


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to