title: Gradle maven-publish does not build standalone spring-boot application
body: <p>When I build a spring-boot application (to a standalone jar) using <code>gradle build</code>, the proper artifacts are generated. The resulting jar contains all dependent jars and is executable.</p>
  
  <p>I have also configured the maven-publish plugin as follows:</p>
  
  <pre><code>publishing {
     publications {
        mavenJava(MavenPublication) {
           from components.java
        }
     }
  }
  </code></pre>
  
  <p>Now when I execute <code>gradle publish</code>, a much smaller jar without dependencies gets build and published. </p>
  
  <p>Following steps are not executed in the latter case.</p>
  
  <pre><code>:myProject:bootRepackage                                                                        
  :myProject:assemble
  </code></pre>
  
  <p>How can I make sure the correct build steps are executed when publishing?</p>