title: Gradle remove version number from the dependency name
body: <p>I would like to use derbyrun.jar created by the Apache Derby project in my application in order to run a derby database as a Windows or Linux service.</p>
  
  <p>The problem is that derbyrun.jar references in its manifest other derby jars without any version number in their names, like  <code>Class-Path: derby.jar derbyclient.jar derbytools.jar derbynet.jar</code>. While my application (with many subprojects) uses "maven/gradle" format <code>derby-10.13.1.1.jar, derbyclient-10.13.1.1.jar, etc.</code>.</p>
  
  <p>Is there a simple way in gradle to name those derby jars without a version number, like </p>
  
  <pre><code>compile("org.apache.derby:derby:10.11.1.1") {
    artifact {
      name = 'derby'
    }
  }
  </code></pre>
  
  <p>that should result in just <code>derby.jar</code>. </p>
  
  <p>I do not like an idea of renaming <code>derby-10.13.1.1.jar</code> into <code>derby.jar</code> in a separate task as we reference those artifact names in many places using <code>configurations.runtime</code>, etc. (e.g. when deploying or creating manifest files for our own jars). And this renaming approach seems to complicate the script unnecessary (+ all the future maintenance effort when the derby version will be changed).</p>
  
  <p>Is there a better way to achieve this? Sure, the mentioned above <code>artifact { name = 'derby' }</code> does not remove the version number from the jar's file name.</p>