Skip to content

[8.6] Refactor plugin scanning into lib (#92437)#92899

Merged
pgomulka merged 3 commits intoelastic:8.6from
pgomulka:8.6_refactor_plugin_scanning_lib
Jan 14, 2023
Merged

[8.6] Refactor plugin scanning into lib (#92437)#92899
pgomulka merged 3 commits intoelastic:8.6from
pgomulka:8.6_refactor_plugin_scanning_lib

Conversation

@pgomulka
Copy link
Copy Markdown
Contributor

new stable plugins require generated named_components.json file which contains all analysis components implemented by this plugin. The generation is currently done in build-tools by elasticsearch.stable-esplugin However this makes the generation only available for plugins using gradle. Plugin developers using maven or other building tooling will not be able to use it.

This commits refactors the scanning logic into libs:plugin-scanner which will allow for plugin install command to perform the scanning too.

relates #88980
backports #92437

  • Have you signed the contributor license agreement?
  • Have you followed the contributor guidelines?
  • If submitting code, have you built your formula locally prior to submission with gradle check?
  • If submitting code, is your pull request against main? Unless there is a good reason otherwise, we prefer pull requests against main and will backport as needed.
  • If submitting code, have you checked that your submission is for an OS and architecture that we support?
  • If you are submitting this code for a class then read our policy for that.

new stable plugins require generated named_components.json file which contains all analysis components implemented by this plugin. The generation is currently done in build-tools by elasticsearch.stable-esplugin
However this makes the generation only available for plugins using gradle. Plugin developers using maven or other building tooling will not be able to use it.

This commits refactors the scanning logic into libs:plugin-scanner which will allow for plugin install command to perform the scanning too.

relates elastic#88980
@pgomulka pgomulka self-assigned this Jan 13, 2023
…stic#92897

Using Files.walk requires closing the returned stream. This commit fixes a helper method in ClassReaders to use try-with-resources with the returned stream.
backports elastic#92890
closes elastic#92866
@pgomulka
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@pgomulka pgomulka merged commit 92a9cc1 into elastic:8.6 Jan 14, 2023
@mark-vieira
Copy link
Copy Markdown
Contributor

@pgomulka I don't think we wanted to backport this to 8.6.1. Can you please revert this. I started to but there were other conflicts so I suspect other dependent work needs to also be backported.

pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants