title: How is the classpath setup in a multimodule gradle project during runtime?
body: <p>I'm quite new to gradle and especially multimodule gradle projects, so I have a small example project created with the following project structure</p>
  <p>Main</p>
  <pre><code>*src
  *tests
  *build.gradle
  *settings.gradle
  
  *Subproject1
      +src
      +tests
      +build.gradle
  </code></pre>
  <p>So when I tried to load the classes in Subproject1 from a class in the main (root) project, it can not find the class, I would have thought the root project classpath contains the subprojects classes as well.
  What am I doing wrong here or any material I should go through to understand this?</p>
  <p>current settings.gradle file,</p>
  <pre><code>rootProject.name = 'main'
  include 'Subproject1'
  
  </code></pre>