Is your feature request related to a problem? Please describe
Developers want an easy way to run a plugin during development.
Describe the solution you'd like
In https://github.com/opensearch-project/OpenSearch/pull/11844 we've added the ability to do ./gradlew run -PinstalledPlugins="['plugin1', 'plugin2']". For one plugin this is a bit of a convoluted syntax (the name can't be plugins), so I'd like to be able to do ./gradlew :plugins:xyz:run when developing an xyz plugin in the plugins folder which should end up doing what ./gradlew run -PinstalledPlugins="['xyz']" does.
Related component
Build
Describe alternatives you've considered
Currently you can modify gradle/run.gradle as follows.
testClusters {
runTask {
testDistribution = 'archive'
if (numZones > 1) numberOfZones = numZones
if (numNodes > 1) numberOfNodes = numNodes
// add plugin(s) to load in ./gradlew run
plugin(':plugins:xyz') // <-------- add this to load xyz plugin
}
}
Additional context
Some people might want to load more than one plugin via command line.
Is your feature request related to a problem? Please describe
Developers want an easy way to run a plugin during development.
Describe the solution you'd like
In https://github.com/opensearch-project/OpenSearch/pull/11844 we've added the ability to do
./gradlew run -PinstalledPlugins="['plugin1', 'plugin2']"
. For one plugin this is a bit of a convoluted syntax (the name can't beplugins
), so I'd like to be able to do./gradlew :plugins:xyz:run
when developing anxyz
plugin in theplugins
folder which should end up doing what./gradlew run -PinstalledPlugins="['xyz']"
does.Related component
Build
Describe alternatives you've considered
Currently you can modify
gradle/run.gradle
as follows.Additional context
Some people might want to load more than one plugin via command line.