title: How to exclude a jar from gradle
body: <p>I try to exclude a jar from gradle build but how to do that for my project part I am not clear.Below are the dependencies I have to exclude only geronimo-javamail_1.4_spec/1.7.1 jar because which gives error when I try to send mail.Please give your guidance to solve this.</p>
  
  <pre><code>    dependencies {
      compile("org.springframework.boot:spring-boot-starter-web")
      compile("org.springframework.boot:spring-boot-starter-batch")
      //compile("org.springframework.boot:spring-boot-devtools")
      compile('org.apache.commons':'commons-lang3':'3.5'){
                  exclude module: 'geronimo'
      }
      compile group: 'org.apache.cxf', name: 'cxf-spring-boot-starter-jaxws', version: '3.1.10'
      compile group: 'org.apache.cxf', name: 'cxf-rt-ws-security', version: '3.1.10'
      testCompile('org.springframework.boot:spring-boot-starter-test')
  }
  </code></pre>
  
  <p><strong>update:exclusion is not working</strong></p>