Migrate yang-xpath-api to bnd-parent 53/99653/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Feb 2022 14:53:09 +0000 (15:53 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Feb 2022 14:53:09 +0000 (15:53 +0100)
Use bnd-parent instead of bundle-parent, so we end up with cleaner
integration.

Change-Id: Ic32867bf8fe9cfeca7b4fdff02d74efb1de7d6ff
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
xpath/yang-xpath-api/pom.xml
xpath/yang-xpath-api/src/main/java/module-info.java
xpath/yang-xpath-api/src/main/java/org/opendaylight/yangtools/yang/xpath/api/package-info.java

index c90232786b9df59fad1d29988df569555b6b8109..85bb77d1e3949821a3b2a33c32ce2b287d81781a 100644 (file)
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.opendaylight.yangtools</groupId>
-        <artifactId>bundle-parent</artifactId>
+        <artifactId>bnd-parent</artifactId>
         <version>8.0.0-SNAPSHOT</version>
-        <relativePath>../../bundle-parent</relativePath>
+        <relativePath>../../bnd-parent</relativePath>
     </parent>
 
     <artifactId>yang-xpath-api</artifactId>
     <version>8.0.0-SNAPSHOT</version>
-    <packaging>bundle</packaging>
+    <packaging>jar</packaging>
     <name>${project.artifactId}</name>
     <description>YANG XPath ${project.artifactId}</description>
 
index 2c204126830388b03e558820e03d07ad1a8be052..b8fe35430c89b1b292a4cdd2ddaf3f997e319c0e 100644 (file)
@@ -18,4 +18,5 @@ module org.opendaylight.yangtools.yang.xpath.api {
     // Annotations
     requires static transitive org.eclipse.jdt.annotation;
     requires static com.github.spotbugs.annotations;
+    requires static org.osgi.annotation.bundle;
 }
index c883d78688dd793ecac227bbe1bf9902575834ff..246465c06a52ab900c29d8976c4951d355ba4044 100644 (file)
@@ -18,7 +18,9 @@
  *
  * @author Robert Varga
  */
+@Export
 @NonNullByDefault
 package org.opendaylight.yangtools.yang.xpath.api;
 
-import org.eclipse.jdt.annotation.NonNullByDefault;
\ No newline at end of file
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.osgi.annotation.bundle.Export;
\ No newline at end of file