title: Gradle is not place WebJar contents into the correct place in my Jar file
body: <p>I've got a basic Java application in which I would like to use WebJars. I use Gradle as my build system. I would like to use the WebJars for Bootstrap and JQuery so I can easily reference and update them in my Spring-Boot/ThymeLeaf application. The application is basically the one from the form tutorial located <a href="https://spring.io/guides/gs/handling-form-submission/" rel="nofollow noreferrer">here</a></p>
  
  <p>As I understand it Gradle should place all the files from the WebJars into the META-INF folder in my Jar file. If I understand everything correctly the Spring-Boot resource handler will then load resource from <code>META-INF/</code> when I reference something in my html page that starts with <code>/webjars/</code> </p>
  
  <p>Unfortunately this doesn't work (yet). Since I see in Tomcat's log output that the resource handler is correctly installed. I decided to check if the files are actually in my Jar file. </p>
  
  <p>When I extract my Jar file the META-INF folder only has a file called <code>MANIFEST.MF</code> with some information about Spring Boot. There is a BootStrap-3.3.7.Jar and a JQuery-3.2-1.Jar file in <code>BOOT-INF/lib</code> but I don't think that is where they are supposed to end up. (Or am I wrong and is there error somewhere in the resource handler?).</p>
  
  <p>How do I tell gradle to do the right thing with these files when I run <code>gradle build</code>?</p>
  
  <p>My gradle.build file looks like this:</p>
  
  <pre><code>buildscript {
      ext {
          springBootVersion = '1.5.8.RELEASE'
      }
      repositories {
          mavenCentral()      
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")        
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'org.springframework.boot'
  apply plugin: "jacoco"
  
  jar {
      baseName = 'gs-serving-web-content'
      version =  '0.0.1'
  }
  
  bootRun {
      addResources = true
  }
  
  repositories {
      mavenCentral()  
  }
  
  sourceCompatibility = 1.8
  targetCompatibility = 1.8
  
  dependencies {
      compile("org.springframework.boot:spring-boot-starter-thymeleaf")
      compile("org.webjars:jquery:3.2.1")
      compile("org.webjars:bootstrap:3.3.7")
      testCompile("org.springframework.boot:spring-boot-starter-test")
  }   
  </code></pre>