Multiple CopySpecs in Zip Task how to define inside a custom plugin

I have written a zip task which copies multiple files from different location something like

task(“createjar”,type:Zip)
{
from(“deploy”){
include “/"
into myjarName
}
from("./meta-inf"){
include "
.xml"
into myjarName
}
from(“deploy”){
include "
/*”
into myjarName
}
archiveName = jarName
}

Now this works it temporarily selectsall the files and puts it into myjarName folder and then zip tasks creates a jar archive with the jarName. My Question is that how can i use this multiple from statements inside a custom plugin i need the format for the same