Updated to support Gradle 1.8 (the copy-spec was slightly changed).