Update build.gradle

use environment variables to set JAVA6_HOME JAVA7_HOME JAVA8_HOME

Ref here:https://github.com/evant/gradle-retrolambda