-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
BuildBuild Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.enhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or requestv3.0.0Issues and PRs related to version 3.0.0Issues and PRs related to version 3.0.0
Description
Is your feature request related to a problem? Please describe.
Currently, the 3.0.0 baseline JDK version is set to JDK-11. The Apache Lucene 10 is going to require JDK-21 and it would make sense to align the OpenSearch JDK baseline requirements with that.
Describe the solution you'd like
Set the target / source level to JDK-17. Allow to use new features of the languages and the standard library.
Describe alternatives you've considered
Why not JDK-21? As of today, for a few reasons:
- we are still trying to move to JDK-21 as a runtime (see please [META] Ensure JDK-21 (baseline) ecosystem readiness #10334), so there are few unknowns here to understand the impact
- we need to align with
a) OpenSearch plugin developers
b) community plugin developers
c) other projects in ecosystem (https://github.com/opensearch-project/opensearch-hadoop, https://github.com/opensearch-project/spring-data-opensearch, https://github.com/apache/flink-connector-opensearch, ... and many others)
Depending on the release date of 3.0.0, we may reconsider the decision for a more aggressing JDK baseline.
Additional context
Backports to 2.x will be more complicated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BuildBuild Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.enhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or requestv3.0.0Issues and PRs related to version 3.0.0Issues and PRs related to version 3.0.0