Skip to content

Commit 3d57714

Browse files
authored
Update runTask to optionally install plugins (opensearch-project#11844)
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
1 parent b042688 commit 3d57714

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

DEVELOPER_GUIDE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ Run OpenSearch using `gradlew run`.
183183
./gradlew run
184184
```
185185

186+
[Plugins](plugins/) may be installed by passing a `-PinstalledPlugins` property:
187+
188+
```bash
189+
./gradlew run -PinstalledPlugins="['plugin1', 'plugin2']"
190+
```
191+
186192
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.
187193

188194
```
@@ -578,7 +584,7 @@ explicitly marked by an annotation should not be extended by external implementa
578584
any time. The `@DeprecatedApi` annotation could also be added to any classes annotated with `@PublicApi` (or documented as `@opensearch.api`) or their methods that
579585
are either changed (with replacement) or planned to be removed across major versions.
580586

581-
The APIs which are designated to be public but have not been stabilized yet should be marked with `@ExperimentalApi` (or documented as `@opensearch.experimental`)
587+
The APIs which are designated to be public but have not been stabilized yet should be marked with `@ExperimentalApi` (or documented as `@opensearch.experimental`)
582588
annotation. The presence of this annotation signals that API may change at any time (major, minor or even patch releases). In general, the classes annotated with
583589
`@PublicApi` may expose other classes or methods annotated with `@ExperimentalApi`, in such cases the backward compatibility guarantees would not apply to latter
584590
(see please [Experimental Development](#experimental-development) for more details).

gradle/run.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ testClusters {
3939
testDistribution = 'archive'
4040
if (numZones > 1) numberOfZones = numZones
4141
if (numNodes > 1) numberOfNodes = numNodes
42+
if (findProperty("installedPlugins")) {
43+
installedPlugins = Eval.me(installedPlugins)
44+
for (String p : installedPlugins) {
45+
plugin('plugins:'.concat(p))
46+
}
47+
}
4248
}
4349
}
4450

0 commit comments

Comments
 (0)