Refactor plugin scanning into lib (#92437)

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
This commit is contained in:
Przemyslaw Gomulka 2023-01-09 15:25:54 +01:00 committed by GitHub
parent 62c53e2682
commit ed83f9cc86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 994 additions and 831 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
module org.elasticsearch.plugin.scanner {
requires org.elasticsearch.base;
requires org.objectweb.asm;
requires org.elasticsearch.plugin.api;
requires org.elasticsearch.xcontent;
exports org.elasticsearch.plugin.scanner;
}