title: Apply configuration to specific projects in gradle build script
body: <p>I have a gradle project that has java applications as well as android applications. </p>
  
  <pre><code>root/
    build.gradle
    settings.gradle
    java1/
    java2/ 
    android1/
    android2/
    java3/
  </code></pre>
  
  <p>etc. </p>
  
  <p>What is the best practice for structuring my build script? I am a total gradle novice and am migrating the project from maven to gradle. </p>
  
  <p>I wanted to do something instead of</p>
  
  <pre><code>configure(subprojects) {}
  </code></pre>
  
  <p>to apply plugins and other specific things. </p>
  
  <p>such as </p>
  
  <pre><code>configure(java1, java2, java3) { // java specifics }
  configure(android1, android2) { // android specifics }
  </code></pre>
  
  <p>I am probably approaching this from the wrong way. </p>
  
  <p>More explicitly I need to apply the plugin java only for the java projects and the android plugin for the android projects.</p>