Clean up root build script. Bump Gradle wrapper to 1.12.
Checkpoint.