title: providedCompile without war plugin
body: <p>I want to reuse certain filter for many projects so I want to extract it and use a single jar to just add it to any Web App.</p>
  
  <p>For building I am using Gradle 1.3 and the following <code>build.gradle</code> file:</p>
  
  <pre><code>apply plugin: 'java'
  
  dependencies {
  
      compile group:'org.slf4j', name:'slf4j-api', version:'1.7.+'
  
      testCompile group:'junit', name:'junit', version:'4.+'
  
      compile group:'org.springframework', name:'spring-web', version:'3.+'   
  
      compile group:'org.slf4j', name:'slf4j-log4j12', version:'1.6.+'
      compile group:'log4j', name:'log4j', version:'1.2.+'
  
      providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version:'3.+'        
  
  }
  
  repositories {
  
      mavenCentral()
  
  }
  </code></pre>
  
  <p>As you can see, I need the servlet api to compile this filter succesfully so I want to add it like a maven provided dependency. </p>
  
  <p>Anyways, after running <code>gradle build</code> I get the following error:</p>
  
  <blockquote>
    <p>Could not find method providedCompile() for arguments
    [{group=javax.servlet, name=javax.servlet-api, version=3.+}] on root
    project 'hibernate-conversation-context'.</p>
  </blockquote>
  
  <p>Now, I know that I cannot use providedCompile without the WAR plugin but I need the project to be a simple JAR. Is there another way to do this?</p>