title: Gradle doesn't compile classes in war project
body: <p>I have following project setup with Eclipse:</p>
  
  <pre><code>project
      build.gradle
      libraries.gradle
      settings.gradle
      ear-project
          build.gradle
      ejb-project
          build.gradle
      war-project
          build.gradle
  </code></pre>
  
  <p>This is build.gradle from root project:</p>
  
  <pre><code>apply from: "./libraries.gradle"
  
  allprojects {
      repositories {
          mavenCentral()
      }
  }
  
  buildscript {
      repositories {
          mavenCentral()
      }
  }
  
  subprojects {
      apply plugin: "java"
      apply plugin: "eclipse"
      apply plugin: "findbugs"
  
      group = "foo.bar"
      version = "1.0.0-SNAPSHOT"
      sourceCompatibility = JavaVersion.VERSION_1_7
      targetCompatibility = JavaVersion.VERSION_1_7
  
      configurations {
          provided {
              description = "Non-exported compile-time dependencies"
          }
      }
  
      sourceSets.main {
          compileClasspath += configurations.provided
      }
  
      eclipse {
          classpath {
              plusConfigurations += configurations.provided
          }
      }
  
      dependencies {
          provided(libraries.javaee)
          provided(libraries.ejb)
          provided(libraries.cdi)
          provided(libraries.jpa)
      }
  }
  </code></pre>
  
  <p>ear-project build.gradle:</p>
  
  <pre><code>apply plugin: "ear"
  
  dependencies {
      deploy project(path: ":ejb")
      deploy project(path: ":war", configuration: "archives")
  }
  </code></pre>
  
  <p>ejb-project build.gradle</p>
  
  <pre><code>apply plugin: "java"
  </code></pre>
  
  <p>war-project build.gradle</p>
  
  <pre><code>apply plugin: "war"
  </code></pre>
  
  <p>After running "gradle build" from command line the .ear-file is generated, but the .war-file contains only non-compiled .java classes. Classes in ejb project are compiled into .class. Why the classes in war-project are not compiled?</p>