Added the ability to upload directories in the Gradle plugin.