Skip to content

Commit

Permalink
Added buildTimestamped task and changed jar name.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanriverson committed Mar 12, 2012
1 parent aef16dc commit 3c9a648
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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.