title: How to get a Gradle (test) task to use code from a different test folder in the same project (Java)
body: <p>I'm completely new to Gradle and I'm having some test dependency/scope issues with my task.</p>
  
  <p>Currently my project is set up something like</p>
  
  <pre><code>/root
  build.gradle
      /test
          /testA
          /testB
  </code></pre>
  
  <p>I have a class in testA package that imports a class in testB package. When I run the task or do a gradle build, it cannot find symbol for that class, which I assume is because the two packages are out of scope of each other. How can I configure my testA task for testA to be able to find stuff (or at least that particular class) in testB? (Both testA and testB tasks are in the same build.gradle file)</p>