3

My structure is like this

Top Level Project (A)
-> src
    -> main
    -> test
-> Sub project (B)
    -> main
    -> test

In my dependencies for project A I have compile project(":ProjectB"), which works as expected for the main sources (brings in any dependencies referenced in project B, also brings in its sources). However testCompile project(":ProjectB") does not work as expected (does not bring in test sources and test dependencies).

This stackoverflow question is exactly what I want, however there are no answers for the latest version of gradle.

Notes: I'm running into this issue on an Android project with a submodule subproject. I'm using androidTestCompile project(":ProjectB").

Community
  • 1
  • 1
bobby
  • 31
  • 1

0 Answers0