Creating a zip without the project folder name included in distzip

Hello If I am using the distzip task all the files a included within a folder which is the project name:

When I execute that:

distZip {
   eachFile { copySpec ->
       println copySpec.getPath()
   }
}

It prints me something like:

myProjectName+Version/lib/myJar

I want to archived the file directly in lib/myjar

Is it possible to change the target folder of the included file?

Thanks for your help Heiko

I found a solution where the path can be changed in the CopySpec:

distZip {
   eachFile { copySpec ->
       if (copySpec.getPath().startsWith(project.name)) {
         def raw = copySpec.getPath()
         copySpec.setPath(raw.minus(project.name+"-"+version+"/"));
      }
   }
}

This works fine. But, is there another solution where the path can be set directly?

Thanks for your help