Convert restconf-server-api to bnd-parent 58/112658/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 20 Jul 2024 17:01:40 +0000 (19:01 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 20 Jul 2024 17:02:26 +0000 (19:02 +0200)
restconf-server-api is a simple single-package module, use bnd-parent to
build it.

JIRA: NETCONF-773
Change-Id: I33a013b95e65892c38a4e02e323e3d235f63455e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/restconf-server-api/pom.xml
protocol/restconf-server-api/src/main/java/module-info.java
protocol/restconf-server-api/src/main/java/org/opendaylight/restconf/server/api/package-info.java

index b5b3385bc407cfc39ab69f2ef61a3cfc68114026..b30909478f45c170a5f96a36780bff97e2c7a379 100644 (file)
 
     <parent>
         <groupId>org.opendaylight.netconf</groupId>
-        <artifactId>netconf-parent</artifactId>
+        <artifactId>bnd-parent</artifactId>
         <version>8.0.0-SNAPSHOT</version>
-        <relativePath>../../parent</relativePath>
+        <relativePath>../../bnd-parent</relativePath>
     </parent>
 
     <artifactId>restconf-server-api</artifactId>
+    <packaging>jar</packaging>
     <name>${project.artifactId}</name>
-    <packaging>bundle</packaging>
     <description>RESTCONF server API</description>
 
     <dependencies>
index 280c98d884c4daffa4af696d7d15813f47fb2304..6ec87980a2c5c3e2d2bd6f961664593a0ddd6c15 100644 (file)
@@ -28,4 +28,5 @@ module org.opendaylight.restconf.server.api {
     // Annotation-only dependencies
     requires static transitive org.eclipse.jdt.annotation;
     requires static com.github.spotbugs.annotations;
+    requires static org.osgi.annotation.bundle;
 }
index 655d0add8d81cde73b1027a1875e044f71f5b411..6c950cb22c0f94f58d27ebd9dac42ebfae835551 100644 (file)
@@ -10,4 +10,5 @@
  * a {@link ServerRequest} coupled with an {@link org.opendaylight.restconf.api.ApiPath} and perhaps a
  * {@link RequestBody}.
  */
+@org.osgi.annotation.bundle.Export
 package org.opendaylight.restconf.server.api;
\ No newline at end of file