How I do zip from providedCompile ? please help me

Hi, I nowhere find answer my question,
I have a web project and there have some “providedCompile” dependencies,
I want zip these dependencies and move them to tomcat lib
how to make this task help me please…
I do this task but this zipped all dependencies

task zip(type: Zip) {
     from configurations.runtime.allArtifacts.files
     from configurations.runtime
     into( + '-' + project.version)