Skip to content

Commit 7e1cea9

Browse files
committed
Require JDK 10 to build Elasticsearch (#29174)
This commit bumps the minimum compiler version required to build Elasticsearch from JDK 9 to JDK 10.
1 parent adafb7e commit 7e1cea9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ Contributing to the Elasticsearch codebase
9292

9393
**Repository:** [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch)
9494

95-
JDK 9 is required to build Elasticsearch. You must have a JDK 9 installation
95+
JDK 10 is required to build Elasticsearch. You must have a JDK 10 installation
9696
with the environment variable `JAVA_HOME` referencing the path to Java home for
97-
your JDK 9 installation. By default, tests use the same runtime as `JAVA_HOME`.
97+
your JDK 10 installation. By default, tests use the same runtime as `JAVA_HOME`.
9898
However, since Elasticsearch, supports JDK 8 the build supports compiling with
99-
JDK 9 and testing on a JDK 8 runtime; to do this, set `RUNTIME_JAVA_HOME`
99+
JDK 10 and testing on a JDK 8 runtime; to do this, set `RUNTIME_JAVA_HOME`
100100
pointing to the Java home of a JDK 8 installation. Note that this mechanism can
101101
be used to test against other JDKs as well, this is not only limited to JDK 8.
102102

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import java.time.ZonedDateTime
5858
class BuildPlugin implements Plugin<Project> {
5959

6060
static final JavaVersion minimumRuntimeVersion = JavaVersion.VERSION_1_8
61-
static final JavaVersion minimumCompilerVersion = JavaVersion.VERSION_1_9
61+
static final JavaVersion minimumCompilerVersion = JavaVersion.VERSION_1_10
6262

6363
@Override
6464
void apply(Project project) {

0 commit comments

Comments
 (0)