Migrate yang-xpath-antlr to bnd-parent 54/99654/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Feb 2022 14:57:22 +0000 (15:57 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Feb 2022 14:57:22 +0000 (15:57 +0100)
bnd-parent is a more modern replacement, migrate to use it.

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

index faaac0e918a418068d3647d92f1ab95ca25f5d37..0ed933f27e9e4e16e4e0037e4726de7aea4227ba 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-antlr</artifactId>
     <version>8.0.0-SNAPSHOT</version>
-    <packaging>bundle</packaging>
+    <packaging>jar</packaging>
     <name>${project.artifactId}</name>
     <description>YANG XPath ANTLR grammars</description>
 
index 5d01f72d36d9e72bd0059c49f97824fe5a12233b..5d25431cc6cd727b7a8bdd2bcd43096dae17a12b 100644 (file)
@@ -9,4 +9,7 @@ module org.opendaylight.yangtools.yang.xpath.antlr {
     exports org.opendaylight.yangtools.yang.xpath.antlr;
 
     requires transitive org.antlr.antlr4.runtime;
+
+    // Annotations
+    requires static org.osgi.annotation.bundle;
 }
index 4075cc773ecb8435d09f3d949d6052354755739b..e2e71db807f1e1995641daa890f07fdaf0cf74bc 100644 (file)
@@ -9,4 +9,7 @@
  * ANTLR grammars for parsing RFC7950 XPpath constructs. This package is considered an implementation detail and does
  * not fall under API stability contract. Use at your own risk.
  */
+@Export
 package org.opendaylight.yangtools.yang.xpath.antlr;
+
+import org.osgi.annotation.bundle.Export;