title: How to append a timestamp to the generated jar using gradle?
body: <p>How can I append a timestamp to the jar file name when running the <code>gradle build</code> command?</p>
  <p>The jar name I have now:</p>
  <pre><code>abc-0.0.1-SNAPSHOT.jar
  </code></pre>
  <p>What I actually want:</p>
  <pre><code>abc-0.0.1-SNAPSHOT20180721101136.jar
  </code></pre>
  <p>My build.gradle file:</p>
  <pre><code>apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'org.springframework.boot'
  apply plugin: 'io.spring.dependency-management'
  
  group = 'com.abc'
  version = '0.0.1-SNAPSHOT'
  sourceCompatibility = 1.8
  </code></pre>
  <p>I've tried <code>build.date = '${timestamp}'</code>, but that doesn't work.
  I've also tried <code>doFirst</code>, but in vain.</p>