Skip to content

Commit e42f429

Browse files
authored
Update runTask to optionally install plugins (opensearch-project#11844) (opensearch-project#11862)
Signed-off-by: Marc Handalian <[email protected]> (cherry picked from commit 3d57714)
1 parent 677ea55 commit e42f429

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

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
@@ -34,6 +34,12 @@ apply plugin: 'opensearch.testclusters'
3434
testClusters {
3535
runTask {
3636
testDistribution = 'archive'
37+
if (findProperty("installedPlugins")) {
38+
installedPlugins = Eval.me(installedPlugins)
39+
for (String p : installedPlugins) {
40+
plugin('plugins:'.concat(p))
41+
}
42+
}
3743
}
3844
}
3945

0 commit comments

Comments
 (0)