Getting gradle build up to spec, fixing java 8 incompatibility.
Fixing gradle script.
Merge branch 'hotfix/1.5.1'