From 8f0fd47721fb8b39cf8eab614291f11bb5b95bda Mon Sep 17 00:00:00 2001 From: Michael Edgar Date: Tue, 9 Jan 2024 12:35:16 -0500 Subject: [PATCH] Update parent, add module-info, streamline OSGi annotation dependency Signed-off-by: Michael Edgar --- api/pom.xml | 22 +++++++++++-- api/src/main/java/module-info.java | 53 ++++++++++++++++++++++++++++++ pom.xml | 16 +++------ spi/pom.xml | 2 +- tck/pom.xml | 2 +- 5 files changed, 79 insertions(+), 16 deletions(-) create mode 100644 api/src/main/java/module-info.java diff --git a/api/pom.xml b/api/pom.xml index beb293c3..bf7ed935 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -28,10 +28,26 @@ MicroProfile OpenAPI API :: API - - biz.aQute.bnd - biz.aQute.bnd.annotation + + org.osgi + osgi.annotation + provided + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.2.1 + + + **/module-info.java + + + + + diff --git a/api/src/main/java/module-info.java b/api/src/main/java/module-info.java new file mode 100644 index 00000000..e107c72c --- /dev/null +++ b/api/src/main/java/module-info.java @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Contributors to the Eclipse Foundation + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a + * copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * Eclipse MicroProfile OpenAPI + *

+ * A set of Java interfaces, annotations, and programming models which allow Java developers to natively produce OpenAPI + * documents from Jakarta RESTful Web Services applications. + */ +module org.eclipse.microprofile.openapi { + + exports org.eclipse.microprofile.openapi; + exports org.eclipse.microprofile.openapi.annotations; + exports org.eclipse.microprofile.openapi.annotations.callbacks; + exports org.eclipse.microprofile.openapi.annotations.enums; + exports org.eclipse.microprofile.openapi.annotations.extensions; + exports org.eclipse.microprofile.openapi.annotations.headers; + exports org.eclipse.microprofile.openapi.annotations.info; + exports org.eclipse.microprofile.openapi.annotations.links; + exports org.eclipse.microprofile.openapi.annotations.media; + exports org.eclipse.microprofile.openapi.annotations.parameters; + exports org.eclipse.microprofile.openapi.annotations.responses; + exports org.eclipse.microprofile.openapi.annotations.security; + exports org.eclipse.microprofile.openapi.annotations.servers; + exports org.eclipse.microprofile.openapi.annotations.tags; + exports org.eclipse.microprofile.openapi.models; + exports org.eclipse.microprofile.openapi.models.callbacks; + exports org.eclipse.microprofile.openapi.models.examples; + exports org.eclipse.microprofile.openapi.models.headers; + exports org.eclipse.microprofile.openapi.models.info; + exports org.eclipse.microprofile.openapi.models.links; + exports org.eclipse.microprofile.openapi.models.media; + exports org.eclipse.microprofile.openapi.models.parameters; + exports org.eclipse.microprofile.openapi.models.responses; + exports org.eclipse.microprofile.openapi.models.security; + exports org.eclipse.microprofile.openapi.models.servers; + exports org.eclipse.microprofile.openapi.models.tags; + exports org.eclipse.microprofile.openapi.spi; + + // Required for compilation, not used at runtime + requires static osgi.annotation; + +} diff --git a/pom.xml b/pom.xml index e20c5df0..98879708 100644 --- a/pom.xml +++ b/pom.xml @@ -19,8 +19,9 @@ org.eclipse.microprofile microprofile-parent - 2.7 + 3.2 + org.eclipse.microprofile.openapi microprofile-openapi-parent 3.2-SNAPSHOT @@ -30,7 +31,7 @@ 2017 - 1.1.1 + 8.1.0 4.3.0 2.0.0.0 @@ -39,8 +40,7 @@ 3.0.1 3.0.1 3.0.2 - 5.3.0 - 2.6 + 3.2 @@ -66,15 +66,9 @@ - - biz.aQute.bnd - biz.aQute.bnd.annotation - ${biz.aQute.bnd.version} - provided - org.osgi - org.osgi.annotation.versioning + osgi.annotation ${osgi-annotation.version} provided diff --git a/spi/pom.xml b/spi/pom.xml index c9b15c2a..c9e7e865 100644 --- a/spi/pom.xml +++ b/spi/pom.xml @@ -30,7 +30,7 @@ org.osgi - org.osgi.annotation.versioning + osgi.annotation org.eclipse.microprofile.openapi diff --git a/tck/pom.xml b/tck/pom.xml index 0927a091..85370aba 100644 --- a/tck/pom.xml +++ b/tck/pom.xml @@ -42,7 +42,7 @@ org.osgi - org.osgi.annotation.versioning + osgi.annotation