title: Grails - how to remove log4j from WAR
body: <p>I'd like to remove log4j from WAR built by Grails. My jboss has it already deployed. 
  I was trying:</p>
  
  <pre><code>grails.project.dependency.resolution = {
      ...
      dependencies {
          provided 'log4j:log4j:1.2.16'
      }
  }
  </code></pre>
  
  <p>But it doesn't work. After a build the WAR still contains log4j-1.2.16.jar. What to do?</p>