You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPER_GUIDE.md
+9-14
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
-[Developer Guide](#developer-guide)
2
2
-[Forking and Cloning](#forking-and-cloning)
3
3
-[Install Prerequisites](#install-prerequisites)
4
-
-[JDK 11](#jdk-11)
5
-
-[JDK 14](#jdk-14)
4
+
-[JDK 21](#jdk-21)
6
5
-[Setup](#setup)
7
6
-[Build](#build)
8
7
-[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`.
19
18
20
19
### Install Prerequisites
21
20
22
-
#### JDK 11
21
+
#### JDK 21
23
22
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).
25
24
26
25
```
27
26
allprojects {
28
-
targetCompatibility = JavaVersion.VERSION_11
29
-
sourceCompatibility = JavaVersion.VERSION_11
27
+
targetCompatibility = JavaVersion.VERSION_21
28
+
sourceCompatibility = JavaVersion.VERSION_21
30
29
}
31
30
```
32
31
33
32
```
34
-
sourceCompatibility = JavaVersion.VERSION_11
35
-
targetCompatibility = JavaVersion.VERSION_11
33
+
sourceCompatibility = JavaVersion.VERSION_21
34
+
targetCompatibility = JavaVersion.VERSION_21
36
35
```
37
36
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).
43
38
44
39
### Setup
45
40
46
41
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))
48
43
3. Launch Intellij IDEA, Choose Import Project and select the settings.gradle file in the root of this package.
0 commit comments