title: How do I move JAR from WEB-INF\lib folder to another folder in WAR file using Gradle?
body: <p>I want to move a JAR from WEB-INF\lib folder to another folder in the WAR file.
  The following does not work:</p>
  
  <pre><code>war { 
          // I don't want my.jar in WEB-INF\lib folder 
          exclude "**/my.jar"
  
          // I want my.jar in "myFolder" folder 
          into("myFolder") {
              def myFiles = classpath.filter{ File file -&gt; file.name.endsWith("my.jar")}
  
              from(myFiles)
          }
  }
  </code></pre>
  
  <p>The my.jar is not in "myFolder" folder.</p>