Convert yang-data-codec-gson to bnd-parent 45/115145/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Feb 2025 19:22:33 +0000 (20:22 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Feb 2025 08:31:13 +0000 (09:31 +0100)
Improve the manifest and documentation a bit.

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

index 3655044b1c951050fde03f0576c5001cd7ff2b2a..602df77fe7624a76f7b425f0ad3fcb1aaa42c075 100644 (file)
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.opendaylight.yangtools</groupId>
-        <artifactId>bundle-parent</artifactId>
+        <artifactId>bnd-parent</artifactId>
         <version>14.0.8-SNAPSHOT</version>
-        <relativePath>../../bundle-parent</relativePath>
+        <relativePath>../../bnd-parent</relativePath>
     </parent>
 
     <artifactId>yang-data-codec-gson</artifactId>
-    <packaging>bundle</packaging>
+    <packaging>jar</packaging>
     <name>${project.artifactId}</name>
     <description>JSON (RFC7951) encoding for NormalizedNodes</description>
 
     <properties>
-        <!-- FIXME: fix these up and set maven.javadoc.failOnWarnings=true -->
+        <!-- FIXME: fix these up and set <maven.javadoc.failOnWarnings>true</maven.javadoc.failOnWarnings> -->
         <doclint>all,-missing</doclint>
     </properties>
 
index a61395772fdf9c7b5c1020c53d31231e1227ab5f..fa0544ca736588a154fde753c4a74b1e8c6f9fc2 100644 (file)
@@ -5,6 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+/**
+ * Utilities for parsing JSON as YANG-modeled data and writing the same.
+ */
 module org.opendaylight.yangtools.yang.data.codec.gson {
     exports org.opendaylight.yangtools.yang.data.codec.gson;
 
@@ -26,4 +29,5 @@ module org.opendaylight.yangtools.yang.data.codec.gson {
     requires static org.checkerframework.checker.qual;
     requires static com.github.spotbugs.annotations;
     requires static org.eclipse.jdt.annotation;
+    requires static org.osgi.annotation.bundle;
 }
diff --git a/codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/package-info.java b/codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/package-info.java
new file mode 100644 (file)
index 0000000..d17cab7
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) 2024 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
+ */
+/**
+ * Utilities for parsing JSON as YANG-modeled data and writing the same.
+ */
+@org.osgi.annotation.bundle.Export
+package org.opendaylight.yangtools.yang.data.codec.gson;
\ No newline at end of file