[Stable plugin api] Drop api suffix in package names (#92905)

Refactoring that drops the api suffix from package name
This will have to be followed up by a plugins/examples fix in imports
Also set an artifact group name to `org.elasticsearch.plugin` in the plugin-api and plugin-analysis-api
This commit is contained in:
Przemyslaw Gomulka 2023-01-14 09:49:37 +01:00 committed by GitHub
parent 4573c5641e
commit 2cdaabe783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 165 additions and 176 deletions

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
module org.elasticsearch.plugin.api {
exports org.elasticsearch.plugin.api;
exports org.elasticsearch.plugin.api.settings;
module org.elasticsearch.plugin {
exports org.elasticsearch.plugin;
exports org.elasticsearch.plugin.settings;
}

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api;
package org.elasticsearch.plugin;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api;
package org.elasticsearch.plugin;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api;
package org.elasticsearch.plugin;
/**
* A named plugin component. Components with a name can be registered and fetched under a name given in

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api;
package org.elasticsearch.plugin;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View file

@ -12,14 +12,12 @@
* <ul>
* <li> The root package is org.elasticsearch.plugin</li>
* <li> Specialised API jars have their name following the root package.
* Interfaces and annotations used by plugin developers should be placed under it.
* i.e. org.elasticsearch.plugin.analysis
* </li>
* <li> Interfaces and annotations used by plugin developers are in `api` package
* i.e org.elasticsearch.plugin.analysis.api or org.elasticsearch.plugin.api
* </li>
* <li> packages which are not meant to be used by plugin developers should not be subpackages of api
* <li> packages which are not meant to be used by plugin developers should be under internal package suffix
* i.e org.elasticsearch.plugin.analysis.internal
* </li>
* </ul>
*/
package org.elasticsearch.plugin.api;
package org.elasticsearch.plugin;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api.settings;
package org.elasticsearch.plugin.settings;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api.settings;
package org.elasticsearch.plugin.settings;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api.settings;
package org.elasticsearch.plugin.settings;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api.settings;
package org.elasticsearch.plugin.settings;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api.settings;
package org.elasticsearch.plugin.settings;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
package org.elasticsearch.plugin.api.settings;
package org.elasticsearch.plugin.settings;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;