Upload a zip file from build.gradle

Hi

I wanted to upload a zip file to nexus using gradle. But, it always tries to upload a jar. Can you let me know, how to specify a zip file there? I have added the below lines:

uploadArchives {
  repositories.mavenDeployer {
   repository(url: "http://localhost:8085/nexus/content/repositories/testXMS") {
    uniqueVersion = false
    authentication(userName: "admin", password: "admin123")
     }
  }
 }

the task uploadArchives is connected to the output of the jar task. To do something else you can wire your own zip creating task e.g. “dist” to a configuration e.g. “default” and then configure the uploadDefault task

artifacts {
 'default' dist
}
  uploadDefault {
}