Add a -O to the wget command so we can have better guarantees about where/what the downloaded file will be called.
Unzip Gradle files to /tmp.
Copy Gradle files from the unzipped folder in /tmp.
Use a full path to the cp command to ensure we use the actual binary and not a shell alias that attaches the option preventing file overwrites.
Added a file resource to create Gradle's install directory.
Make sure the Gradle install directory is in place before we move Gradle's files.
Fixed typo in wget command.
Version bump for the default value of the $version parameter.