Upgrade Gradle to 1.12.
Switch to using the Codehaus Nexus instance for publishing. Updates versions of dependencies as appropriate.