How can I set org.gradle.java.home property for my GradleBuild type task


(Suneetha Yanala) #1

Hi my code is like

task jsMinification(type: GradleBuild) {
          buildFile ='minifyJs.gradle'
    tasks = ['individualMinify ']
}

I would like to set org.gradle.java.home property to this gradle build. I have other tasks similar bu they use JDL 1.5. Only this task need JDK 1.7. Can you please let me know how can set the Java home only for this task