Open
Description
Is your feature request related to a problem? Please describe
#11441 added support for semver ranges in dependencies of plugins. however, there's no way to use this with the gradle plugin used to build plugins (opensearchplugin
from org.opensearch.gradle:build-tools
).
Describe the solution you'd like
- it must be possible to specify this new kind of dependencies also using the gradle plugin. i.e. it should be easily possible to just say "this OpenSearch plugin is compatible with OpenSearch >= 2.13" using gradle code without having to manually write the plugin descriptor file (since the gradle plugin is supposed to take care of it).
- opensearch-plugin-template-java should be updated to use this and show it as best practices.
- other OpenSearch plugins may or may not be updated to match this (depends on whether it makes sense for them - though for patch releases it might make sense so that in the future you're not forced to re-release each and every one of them even if nothing changed there?)
Related component
Plugins
Describe alternatives you've considered
the plugin descriptor file could be written manually, but then a lot of the automation coming from the gradle plugin would no longer be used, which makes no sense.
Additional context
see #11441 (comment) and following comments