title: Gradle, copy and rename file
body: <p>I'm trying to in my gradle script, after creating the bootJar for a spring app, copy and rename the jar that was created to a new name (which will be used in a Dockerfile).  I'm missing how to rename the file (I don't want to have the version in docker version of the output file).</p>
  
  <pre><code>bootJar {
      baseName = 'kcentral-app'
      version =  version
  }
  
  
  task buildForDocker(type: Copy){
    from bootJar
    into 'build/libs/docker'
  }
  </code></pre>