We currently set the permissions on each file and directory as they're added to the archives. We should use the dirMode
and fileMode
settings on the copy spec instead. This will allow the modes to be considered in Gradle's up-to-date and caching checks.