title: How to force IntelliJ IDEA to use the name of the jar-file specified in the gradle.build as artifact name?
body: <p>I have multi-project web application that configurable by Gradle. In one subproject  (let's call it 'XYZ') I specify desired jar-file name.</p>
  
  <pre><code>jar {
     archiveName 'archiveName.jar'
  }
  </code></pre>
  
  <p>When I import this project into IntelliJ IDEA (File -> New -> Project from Existing Sources...), IntelliJ IDEA generate artifact description for WAR file. In this artifact description subproject JAR file in WEB-IBF/lib named as <code>&lt;rootProject.name&gt;-XYZ.jar</code>.</p>
  
  <p>How to force IntelliJ IDEA to use the name of the jar-file specified in the gradle.build as artifact name? </p>