improve gradle build file to automatically create a api .zip