Skip to content

Commit

Permalink
Add an error message to better explain Java 11+ build requirement (#2081
Browse files Browse the repository at this point in the history
)

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

* Better wording

* Merge
  • Loading branch information
Anuraag Agrawal committed Nov 18, 2020
1 parent a68b0bf commit 5528fe8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 5528fe8

Please sign in to comment.