Skip to content

Commit 9920838

Browse files
authored
Set alerting plugin 3.0.0 baseline JDK version to JDK-21 (#1695)
Signed-off-by: Andriy Redko <[email protected]>
1 parent fee62b5 commit 9920838

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.github/workflows/bwc-test-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
needs: Get-CI-Image-Tag
2020
strategy:
2121
matrix:
22-
java: [ 11 ]
22+
java: [ 21 ]
2323
# Job name
2424
name: Build and test Alerting
2525
# This job runs on Linux

DEVELOPER_GUIDE.md

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
- [Developer Guide](#developer-guide)
22
- [Forking and Cloning](#forking-and-cloning)
33
- [Install Prerequisites](#install-prerequisites)
4-
- [JDK 11](#jdk-11)
5-
- [JDK 14](#jdk-14)
4+
- [JDK 21](#jdk-21)
65
- [Setup](#setup)
76
- [Build](#build)
87
- [Building from the command line](#building-from-the-command-line)
@@ -19,32 +18,28 @@ Fork this repository on GitHub, and clone locally with `git clone`.
1918

2019
### Install Prerequisites
2120

22-
#### JDK 11
21+
#### JDK 21
2322

24-
OpenSearch builds using Java 11 at a minimum, using the Adoptium distribution. This means you must have a JDK 11 installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK 11 installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-11`. This is configured in [buildSrc/build.gradle](buildSrc/build.gradle) and [distribution/tools/java-version-checker/build.gradle](distribution/tools/java-version-checker/build.gradle).
23+
OpenSearch builds using Java 21 at a minimum, using the Adoptium distribution. This means you must have a JDK 21 installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK 21 installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-11`. This is configured in [buildSrc/build.gradle](buildSrc/build.gradle) and [distribution/tools/java-version-checker/build.gradle](distribution/tools/java-version-checker/build.gradle).
2524

2625
```
2726
allprojects {
28-
targetCompatibility = JavaVersion.VERSION_11
29-
sourceCompatibility = JavaVersion.VERSION_11
27+
targetCompatibility = JavaVersion.VERSION_21
28+
sourceCompatibility = JavaVersion.VERSION_21
3029
}
3130
```
3231

3332
```
34-
sourceCompatibility = JavaVersion.VERSION_11
35-
targetCompatibility = JavaVersion.VERSION_11
33+
sourceCompatibility = JavaVersion.VERSION_21
34+
targetCompatibility = JavaVersion.VERSION_21
3635
```
3736

38-
Download Java 11 from [here](https://adoptium.net/releases.html?variant=openjdk11).
39-
40-
#### JDK 14
41-
42-
To run the full suite of tests, download and install [JDK 14](https://jdk.java.net/archive/) and set `JAVA11_HOME`, and `JAVA14_HOME`. They are required by the [backwards compatibility test](./TESTING.md#testing-backwards-compatibility).
37+
Download Java 21 from [here](https://adoptium.net/releases.html?variant=openjdk21).
4338

4439
### Setup
4540

4641
1. Clone the repository (see [Forking and Cloning](#forking-and-cloning))
47-
2. Make sure `JAVA_HOME` is pointing to a Java 11 JDK (see [Install Prerequisites](#install-prerequisites))
42+
2. Make sure `JAVA_HOME` is pointing to a Java 21 JDK (see [Install Prerequisites](#install-prerequisites))
4843
3. Launch Intellij IDEA, Choose Import Project and select the settings.gradle file in the root of this package.
4944

5045
### Build

0 commit comments

Comments
 (0)