Update to use gradle 1.12 and Java 8