Getting gradle build up to spec, fixing java 8 incompatibility.
Fixing gradle script.