Custom plugin for a task of type Zip


(sakshi) #1

When I write a task of type Copy in Custom plugin, I do this:

Class CopyTask extends DefaultTask{
@TaskAction
project.copy{
// specify files to copy //
}
}

Similarly, I want to write a task of type Zip but we dont have anything like project.zip in this case. How can I write a task of type Zip in custom plugin task class.