title: Gradle specify build binaries names from command line
body: <p>I need to specify build binaries names from command line in Gradle. </p>
  
  <p>like:</p>
  
  <pre><code>gradle -arg: filename.jar
  </code></pre>
  
  <p>I will use it in </p>
  
  <pre><code>jar{
       archiveName = "something.jar"
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>war{
      war.archiveName = "something.war"
  }
  </code></pre>
  
  <p>Just how to pass a parameter into build.gradle and use that string from command line argument.</p>