0

I have "test" tasks in subprojects:

apply plugin: 'java'

test {
  description = 'Runs tests that are marked as @FastTest.'

  useJUnit {  includeCategories 'category.FastTest'  }
}

If I add "war" task to the root project:

apply plugin: 'war'

, it overrides test tasks in subprojects, e.g. it ignores my "test" task properties. How do I suppress "war" task overriding "test" tasks?

isobretatel
  • 3,812
  • 7
  • 34
  • 49
  • Applying the 'war' plugin to the root project won't have any effect on the subprojects. If you want tests in the subprojects you will need to apply 'war', 'java' or 'groovy' etc plugin to the subprojects – lance-java Sep 13 '16 at 15:38
  • I have "apply plugin: 'java'" in subprojects. – isobretatel Sep 13 '16 at 16:56

0 Answers0