Convert rfc8528-data-api to JPMS 46/93146/8
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Oct 2020 16:29:43 +0000 (18:29 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Oct 2020 10:39:08 +0000 (12:39 +0200)
This is a simplistic module, convert it. While converting it, an
unneeded dependency on rfc8528-model-api is also eliminated,
which crops up in rfc8528-data-util.

JIRA: YANGTOOLS-934
Change-Id: Iaf9cb15e61eb1b035762843b4a59ea10a87d7233
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/rfc8528-data-api/pom.xml
yang/rfc8528-data-api/src/main/java/module-info.java [new file with mode: 0644]
yang/rfc8528-data-util/pom.xml

index 04d7c9ab544d922783f8c877896af25ea567e9af..68d086a35d5bf5654a7f9b5e94d40bf5ea742331 100644 (file)
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-parser-api</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>rfc8528-model-api</artifactId>
-        </dependency>
     </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <configuration>
-                    <instructions>
-                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc8528.data.api</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/yang/rfc8528-data-api/src/main/java/module-info.java b/yang/rfc8528-data-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..7124deb
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2020 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
+ */
+// 'rfc8528' in the name ends with a digit
+@SuppressWarnings("module")
+module org.opendaylight.yangtools.rfc8528.data.api {
+    exports org.opendaylight.yangtools.rfc8528.data.api;
+
+    requires transitive org.opendaylight.yangtools.yang.data.api;
+    requires transitive org.opendaylight.yangtools.yang.parser.api;
+
+    requires org.opendaylight.yangtools.util;
+}
index 42fbed942b4eae5593a09d8193620dbc16c3f609..e015f4f06558221df6f91da41f94449f3970074d 100644 (file)
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>rfc8528-data-api</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>rfc8528-model-api</artifactId>
+        </dependency>
     </dependencies>
 
     <build>