We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 113d6d5 commit 9f55f03Copy full SHA for 9f55f03
buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
@@ -222,7 +222,11 @@ class BuildPlugin implements Plugin<Project> {
222
// IntelliJ does not set JAVA_HOME, so we use the JDK that Gradle was run with
223
return Jvm.current().javaHome
224
} else {
225
- throw new GradleException("JAVA_HOME must be set to build Elasticsearch")
+ throw new GradleException(
226
+ "JAVA_HOME must be set to build Elasticsearch. " +
227
+ "Note that if the variable was just set you might have to run `./gradlew --stop` for " +
228
+ "it to be picked up. See https://github.com/elastic/elasticsearch/issues/31399 details."
229
+ )
230
}
231
232
return javaHome
0 commit comments