Convert yang-common-netty to bnd-parent 14/105514/4
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 19 Apr 2023 15:59:06 +0000 (17:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 19 Apr 2023 19:37:59 +0000 (21:37 +0200)
This is a very simple bundle, convert it with minimal effort. Also adds
a package-info.

Change-Id: I2ca24a65fbed72c534d2d2f28eca327453d3173f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/yang-common-netty/pom.xml
common/yang-common-netty/src/main/java/module-info.java
common/yang-common-netty/src/main/java/org/opendaylight/yangtools/yang/common/netty/package-info.java [new file with mode: 0644]

index 9ff23caf02d24964bf53ad4ab071204e7e8295dc..8c25612b21a2b5c79351473a696fd0a77c12ca20 100644 (file)
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.opendaylight.yangtools</groupId>
-        <artifactId>bundle-parent</artifactId>
+        <artifactId>bnd-parent</artifactId>
         <version>11.0.0-SNAPSHOT</version>
-        <relativePath>../../bundle-parent</relativePath>
+        <relativePath>../../bnd-parent</relativePath>
     </parent>
 
     <artifactId>yang-common-netty</artifactId>
-    <packaging>bundle</packaging>
     <name>${project.artifactId}</name>
     <description>Netty utilities for Common YANG definitions</description>
+    <url>https://wiki.opendaylight.org/display/ODL/YANG+Tools</url>
 
     <dependencies>
         <dependency>
index 5b296d535afed6bac446f1db60534332f450a36b..d9a4c6269d20921e2313b01ddfecc4901cca3134 100644 (file)
@@ -18,4 +18,5 @@ module org.opendaylight.yangtools.yang.common.netty {
 
     // Annotations
     requires static transitive org.eclipse.jdt.annotation;
+    requires static org.osgi.annotation.bundle;
 }
diff --git a/common/yang-common-netty/src/main/java/org/opendaylight/yangtools/yang/common/netty/package-info.java b/common/yang-common-netty/src/main/java/org/opendaylight/yangtools/yang/common/netty/package-info.java
new file mode 100644 (file)
index 0000000..4964e46
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+/**
+ * Common utilities bridging common YANG constructs with Netty.
+ */
+@Export
+package org.opendaylight.yangtools.yang.common.netty;
+
+import org.osgi.annotation.bundle.Export;