title: gradle publishing project-version-PLAIN.war file instead of project-version.war
body: <p>When I run &quot;gradle build&quot;, it generates a build/libs/project-version.war file which is able to run by itself with &quot;java -jar&quot; command. But when I run &quot;gradle artifactoryPublish&quot;, it saves on the artifactory repository a &quot;project-version-plain-war&quot; file which does not have tomcat embedded.</p>
  <p>I am following this instruccions <a href="https://www.jfrog.com/confluence/display/JFROG/Gradle+Artifactory+Plugin" rel="nofollow noreferrer">https://www.jfrog.com/confluence/display/JFROG/Gradle+Artifactory+Plugin</a></p>
  <p>The lines added to the gradle.build are something like this:</p>
  <pre><code>plugin &quot;maven-publish&quot;
  plugin &quot;com.jfrog.artifactory&quot;
  artifactory { 
  ...
  }
  
  subprojects {
    plugin &quot;war&quot;
    group = group
    version = version
  
    publishing {
      publications {
        MavenPublication(MavenPublication) {
          from components.web
        }
      }
      repositories{
        maven { url &quot;https://artifactory-server&quot; }
      }
    }
  }
  </code></pre>
  <p>help is appreciated</p>