Upgrade to Gradle 1.12

To fix the internal publishing problem.

CC @benjchristensen