Add an error message to better explain Java 11+ build requirement (#2081)

* Add an error message to better explain Java 11+ build requirement

* Better wording

* Merge
This commit is contained in:
Anuraag Agrawal 2020-11-19 05:53:07 +09:00 committed by GitHub
parent a68b0bf864
commit 5528fe80bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,13 @@ plugins {
id "io.morethan.jmhreport" apply false
}
if (!JavaVersion.current().isJava11Compatible()) {
throw new GradleException("JDK 11 or higher is required to build. " +
"One option is to download it from https://adoptopenjdk.net/. If you believe you already " +
"have it, please check that the JAVA_HOME environment variable is pointing at the " +
"JDK 11 installation.")
}
ext {
opentelemetryProjects = subprojects - project(":opentelemetry-bom")
}