Closed
Description
With rampdown phase one of JDK 11 approaching, we want to enable JDK 11 in CI. However, Gradle 4.7 is not compatible with JDK 11 (gradle/gradle#4860). The upgrade to Gradle 4.8 is non-trivial due to Gradle reporting dependency conflicts.
Since the non-trivial nature keeps escalating feature/31230_gradle48_jdk11 will track this work.
CI for the branch is at (elastic/infra#5603, elastic/infra#5601): https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+31230_gradle48_jdk11+matrix-java-feature-branch/
TODO:
- upgrade the Gradle wrapper to 4.8
- enable JDK 11 to be used as the compiler (while still allowing JDK 10)
- get the build passing on JDK 11
- add JDK 11 to the various properties files in
.ci
- elastic/infra#5597: work with our internal infra team to have the EA build of the JDK upgraded to JDK 11-latest in CI
- AttachmentProcessorTests.testIndexedChars fails when running on jdk 11ea #31305 AttachmentProcessorTests.testIndexedChars fails when running on jdk 11ea ( tika 1.19 )
- IngestAttachmentClientYamlTestSuiteIT fails on jdk 11 #31456 IngestAttachmentClientYamlTestSuiteIT fails on jdk 11 ( tika 1.19 )
- Understand Gradle 4.8 test failure around setup of security policies #31324 Understand Gradle 4.8 + JDK 10 test failure around setup of security policies
- plugins/repository-hdfs tests are failing when built by JDK 11 #31498 plugins/repository-hdfs tests are failing when built by JDK 11
- org.elasticsearch.painless.ArrayTests tests fail when running on JDK 11 #31500 org.elasticsearch.painless.ArrayTests tests fail when running on JDK 11
These changes should be done for 6.x and master.
Note: Gradle doesn't fully support JDK 11 as of 4.8 and full support is planned for 4.9 gradle/gradle#5120 .