Skip to content
Browse files

Added buildTimestamped task and changed jar name.

  • Loading branch information...
1 parent aef16dc commit 3c9a648213d112db45b35d4baff060836b32a66e @deanriverson deanriverson committed Mar 12, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 build.gradle
View
13 build.gradle
@@ -5,8 +5,8 @@ apply plugin: 'signing'
/***************************************
* Set Maven coordinates and build vars
***************************************/
-group = 'org.jfxlabs'
-archivesBaseName = "jfxlabs"
+group = 'org.jfxtras'
+archivesBaseName = "jfxtras"
version = '0.1-SNAPSHOT'
isRelease = !version.endsWith('SNAPSHOT')
@@ -48,6 +48,15 @@ dependencies {
testCompile 'junit:junit:4.10'
}
+task buildTimestamped(type: Copy, dependsOn: 'build') {
+ from 'build/libs'
+ into 'build/libs/timestamped'
+ include '*.jar'
+ rename { String fileName ->
+ fileName.replace('SNAPSHOT', "SNAPSHOT-${new Date().format('HH-mm-dd-MM-yyyy')}")
+ }
+}
+
task wrapper(type: Wrapper) {
gradleVersion = '1.0-milestone-8'
}

0 comments on commit 3c9a648

Please sign in to comment.
Something went wrong with that request. Please try again.