GradleEnvironment () { return new GradleEnvironment() { @Override public File getGradleUserHome() { return InternalBuildEnvironment.this.gradleUserHome.get(); } @Override public String getGradleVersion() { return InternalBuildEnvironment.this.gradleVersion.get(); } }; }