title: Gradle exclude module for Copy task
body: <p>I have a Copy task set as follow:</p>
  
  <pre><code>task copyToLib( type: Copy ) {
     into "$buildDir/myapp/lib"
     from configurations.runtime
  
     // We only want jars files to go in lib folder
     exclude "*.exe"
     exclude "*.bat"
     exclude "*.cmd"
     exclude "*.dll"
  
     // We exclude some lib
     exclude group: "org.slf4j", name: "slf4j-api", version: "1.6.2"
  }
  </code></pre>
  
  <p>And i'm getting the following error:</p>
  
  <pre><code>Could not find method exclude() for arguments [{group=org.slf4j, name=slf4j-api, version=1.6.2}] on task ':copyToLib' of type org.gradle.api.tasks.Copy
  </code></pre>
  
  <p>I have the feeling that it's only a syntax issue, any hint?</p>