Fresh build script for 1.8

Trying to get 1.8 working, replaced build.gradle with fresh one from new
build.