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
* Update installedPlugins in run.gradle to fetch plugins from maven.
This change allows us to install plugins not shipped with core with gradlew run.
It supports simply specifying the plugin name or adding a specific version.
Example:
./gradlew run -PinstalledPlugins['opensearch-job-scheduler'] or
./gradlew run -PinstalledPlugins['opensearch-job-scheduler:3.2.x.x]
Signed-off-by: Marc Handalian <[email protected]>
* Add support for third party plugins
Signed-off-by: Marc Handalian <[email protected]>
---------
Signed-off-by: Marc Handalian <[email protected]>
OpenSearch recommends building with the [Temurin/Adoptium](https://adoptium.net/temurin/releases/) distribution. JDK 11 is the minimum supported, and JDK-24 is the newest supported. You must have a supported JDK installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-21`.
79
+
OpenSearch recommends building with the [Temurin/Adoptium](https://adoptium.net/temurin/releases/) distribution. JDK 11 is the minimum supported, and JDK-24 is the newest supported. You must have a supported JDK installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-21`.
80
80
81
-
Download Java 11 from [here](https://adoptium.net/releases.html?variant=openjdk11).
81
+
Download Java 11 from [here](https://adoptium.net/releases.html?variant=openjdk11).
82
82
83
83
84
84
In addition, certain backward compatibility tests check out and compile the previous major version of OpenSearch, and therefore require installing [JDK 11](https://adoptium.net/temurin/releases/?version=11) and [JDK 17](https://adoptium.net/temurin/releases/?version=17) and setting the `JAVA11_HOME` and `JAVA17_HOME` environment variables. More to that, since 8.10 release, Gradle has deprecated the usage of the any JDKs below JDK-16. For smooth development experience, the recommendation is to install at least [JDK 17](https://adoptium.net/temurin/releases/?version=17) or [JDK 21](https://adoptium.net/temurin/releases/?version=21). If you still want to build with JDK-11 only, please add `-Dorg.gradle.warning.mode=none` when invoking any Gradle build task from command line, for example:
@@ -178,6 +178,23 @@ Run OpenSearch using `gradlew run`.
178
178
./gradlew run -PinstalledPlugins="['plugin1', 'plugin2']"
179
179
```
180
180
181
+
External plugins may also be fetched and installed from maven snapshots:
182
+
183
+
```bash
184
+
./gradlew run -PinstalledPlugins="['opensearch-job-scheduler', 'opensearch-sql-plugin']"
185
+
```
186
+
187
+
You can specify a plugin version to pull to test a specific version in the org.opensearch.plugin groupId:
188
+
```bash
189
+
./gradlew run -PinstalledPlugins="['opensearch-job-scheduler:3.3.x.x']"
190
+
```
191
+
192
+
or install with fully qualified maven coordinates:
193
+
```bash
194
+
./gradlew run -PinstalledPlugins="['com.example:my-cool-plugin:3.3.x.x']"
195
+
```
196
+
197
+
181
198
That will build OpenSearch and start it, writing its log above Gradle's status message. We log a lot of stuff on startup, specifically these lines tell you that OpenSearch is ready.
0 commit comments