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.

How can I make Gradle run all 5 projects with buildDependents command?


Here is the build.gradle for ProjectRoot

apply plugin: "java"
dependencies {
   testCompile 'org.testng:testng:5.14'
}

subprojects {
  apply plugin: "java"
  dependencies {
    testCompile 'org.testng:testng:5.14'
  }
}

project (':projectB') {
    dependencies {
      compile project(':projectA')
    }
}

project(':projectA') {
    dependencies {
      compile project(':')
    }
}

project (':projectD') {
    dependencies {
      compile project(':projectC')
    }
}

project(':projectC') {
    dependencies {
      compile project(':')
    }
}





-- 
Nikita Skvortsov

Reply via email to