title: Gradle exclude a specific subproject from full build
body: <p><br/>
     In our Gradle project, we want to add a new module for functional-tests that needs to be able to access dependencies from other subprojects but still not be run as part of the full project build. If I try this, it still gets built:</p>
  
  <pre><code>def javaProjects() {
     return subprojects.findAll { it.name != 'functional-tests' }
  }
  
  configure(javaProjects()) {
     ...
  }
  
  project(':functional-tests') {
      ....
  }
  </code></pre>
  
  <p>The result is the same even if I move the functional-tests build to a separate build.gradle file of its own. Can someone point out how to achieve this?</p>