I use the distZip task to create my distribution. The distribution name is 'baseName'-'version'.zip at the moment. I want to use as classifier the current timestamp, i.e. the time of the build.
I tried using
distZip {
classifier new Date().getTime()
}
but then I get the following error:
Could not find method classifier() for arguments [1421317243316] on root project
Doing the Java trick with
new Date().getTime() + ''
did not help. Anyone an idea?
Would also be good to know if I can extract year, month and day from the object.