Output JAVA_HOME during builds
This commit enhances the build logging output to also output JAVA_HOME (and, if applicable, org.gradle.java.home). Closes #17629
This commit is contained in:
parent
4adc31fe11
commit
29278f8482
|
@ -100,9 +100,12 @@ class BuildPlugin implements Plugin<Project> {
|
|||
println " OS Info : ${System.getProperty('os.name')} ${System.getProperty('os.version')} (${System.getProperty('os.arch')})"
|
||||
if (gradleJavaVersionDetails != javaVersionDetails) {
|
||||
println " JDK Version (gradle) : ${gradleJavaVersionDetails}"
|
||||
println " JAVA_HOME (gradle) : ${gradleJavaHome}"
|
||||
println " JDK Version (compile) : ${javaVersionDetails}"
|
||||
println " JAVA_HOME (compile) : ${javaHome}"
|
||||
} else {
|
||||
println " JDK Version : ${gradleJavaVersionDetails}"
|
||||
println " JAVA_HOME : ${gradleJavaHome}"
|
||||
}
|
||||
|
||||
// enforce gradle version
|
||||
|
|
Loading…
Reference in New Issue