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:
parent
a68b0bf864
commit
5528fe80bf
|
|
@ -10,6 +10,13 @@ plugins {
|
||||||
id "io.morethan.jmhreport" apply false
|
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 {
|
ext {
|
||||||
opentelemetryProjects = subprojects - project(":opentelemetry-bom")
|
opentelemetryProjects = subprojects - project(":opentelemetry-bom")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue