-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --with-plugins to run task #125468
Add --with-plugins to run task #125468
Conversation
This commit adds a new command line option to the run task to include plugins. The option takes in a comma separated list of plugins from the plugins directory. For example: ``` ./gradlew run --with-plugins=analysis-icu,analysis-nori ```
Pinging @elastic/es-delivery (Team:Delivery) |
for (String plugin : this.plugins) { | ||
cluster.plugin(":plugins:" + plugin); | ||
} | ||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a tiny typo
this.plugins = Arrays.asList(plugins.split(",")); | ||
for (var cluster : getClusters()) { | ||
for (String plugin : this.plugins) { | ||
cluster.plugin(":plugins:" + plugin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plain FYI. I noticed this is incompatible with Gradle Configuration cache. that's likely not a big deal for using ./gradlew run
at the moment, but we will rework or remove cluster.plugin(String) and cluster.module(String) at one point as it breaks configuration compatibility.
This commit adds a new command line option to the run task to include plugins. The option takes in a comma separated list of plugins from the plugins directory. For example: ``` ./gradlew run --with-plugins=analysis-icu,analysis-nori ```
This commit adds a new command line option to the run task to include plugins. The option takes in a comma separated list of plugins from the plugins directory. For example: ``` ./gradlew run --with-plugins=analysis-icu,analysis-nori ```
This commit adds a new command line option to the run task to include plugins. The option takes in a comma separated list of plugins from the plugins directory. For example: ``` ./gradlew run --with-plugins=analysis-icu,analysis-nori ```
This commit adds a new command line option to the run task to include plugins. The option takes in a comma separated list of plugins from the plugins directory. For example: