title: Exclude file from jar using Gradle
body: <p>I have a built a springboot jar, and I want to exclude all logback.xml from fatjar using gradle. and I have tried in following way.</p>
  
  <pre><code>jar{
      exclude '/BOOT-INF/lib/**/logback.xml'
  }
  </code></pre>
  
  <p>Could some one please help me how to exclude all logback.xml from dependencies using gradle.</p>