mirror of
https://github.com/wazuh/wazuh-indexer-plugins.git
synced 2025-12-10 00:28:51 -06:00
Update DEVELOPER_GUIDE.md to use JDK 21 (#538)
This commit is contained in:
parent
cbe095404c
commit
dd942d2285
@ -38,6 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Improve ECS folder structure [(#473)](https://github.com/wazuh/wazuh-indexer-plugins/pull/473)
|
- Improve ECS folder structure [(#473)](https://github.com/wazuh/wazuh-indexer-plugins/pull/473)
|
||||||
- Fix permissions for job 'call-build-workflow' [(#492)](https://github.com/wazuh/wazuh-indexer-plugins/pull/492)
|
- Fix permissions for job 'call-build-workflow' [(#492)](https://github.com/wazuh/wazuh-indexer-plugins/pull/492)
|
||||||
- Update event generators [(#505)](https://github.com/wazuh/wazuh-indexer-plugins/pull/505)
|
- Update event generators [(#505)](https://github.com/wazuh/wazuh-indexer-plugins/pull/505)
|
||||||
|
- Update `DEVELOPER_GUIDE.md` to use JDK 21 [(#538)](https://github.com/wazuh/wazuh-indexer-plugins/pull/538)
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
- Reduce risk of GITHUB_TOKEN exposure [(#484)](https://github.com/wazuh/wazuh-indexer-plugins/pull/484)
|
- Reduce risk of GITHUB_TOKEN exposure [(#484)](https://github.com/wazuh/wazuh-indexer-plugins/pull/484)
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
- [Developer Guide](#developer-guide)
|
- [Developer Guide](#developer-guide)
|
||||||
- [Forking and Cloning](#forking-and-cloning)
|
- [Forking and Cloning](#forking-and-cloning)
|
||||||
- [Install Prerequisites](#install-prerequisites)
|
- [Install Prerequisites](#install-prerequisites)
|
||||||
- [JDK 11](#jdk-11)
|
- [JDK 21](#jdk-21)
|
||||||
- [JDK 14](#jdk-14)
|
|
||||||
- [Setup](#setup)
|
- [Setup](#setup)
|
||||||
- [Build](#build)
|
- [Build](#build)
|
||||||
- [Building from the command line](#building-from-the-command-line)
|
- [Building from the command line](#building-from-the-command-line)
|
||||||
@ -16,27 +15,16 @@ Fork this repository on GitHub, and clone locally with `git clone`. Plugins's co
|
|||||||
|
|
||||||
### Install Prerequisites
|
### Install Prerequisites
|
||||||
|
|
||||||
#### JDK 11
|
#### JDK 21
|
||||||
|
|
||||||
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 `build.gradle`.
|
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-21`. This is configured in `build.gradle`.
|
||||||
|
|
||||||
```
|
Download Java 21 from [here](https://adoptium.net/es/temurin/releases).
|
||||||
allprojects {
|
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Download Java 11 from [here](https://adoptium.net/releases.html?variant=openjdk11).
|
|
||||||
|
|
||||||
#### JDK 14
|
|
||||||
|
|
||||||
To run the full suite of tests, download and install [JDK 14](https://jdk.java.net/archive/) and set `JAVA11_HOME`, and `JAVA14_HOME`.
|
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
1. Clone the repository (see [Forking and Cloning](#forking-and-cloning))
|
1. Clone the repository (see [Forking and Cloning](#forking-and-cloning))
|
||||||
2. Make sure `JAVA_HOME` is pointing to a Java 11 JDK (see [Install Prerequisites](#install-prerequisites))
|
2. Make sure `JAVA_HOME` is pointing to a Java 21 JDK (see [Install Prerequisites](#install-prerequisites))
|
||||||
3. Launch Intellij IDEA, Choose Import Project and select the settings.gradle file in the root of this package.
|
3. Launch Intellij IDEA, Choose Import Project and select the settings.gradle file in the root of this package.
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user