Convert rfc8528-data-util to JPMS 51/93251/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Oct 2020 01:04:42 +0000 (03:04 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 26 Oct 2020 09:56:31 +0000 (09:56 +0000)
This is a simplistic module, convert it.

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

index e015f4f06558221df6f91da41f94449f3970074d..4f915201b3641dba99712f3724139e94bcfcbf1f 100644 (file)
             <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.util</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/yang/rfc8528-data-util/src/main/java/module-info.java b/yang/rfc8528-data-util/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..6beba60
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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.util {
+    // FIXME: 7.0.0: correct this typo: rcf8525.data.util -> rfc8525.data.util
+    exports org.opendaylight.yangtools.rcf8528.data.util;
+
+    requires transitive org.opendaylight.yangtools.yang.data.api;
+    requires transitive org.opendaylight.yangtools.rfc8528.data.api;
+    requires org.opendaylight.yangtools.rfc8528.model.api;
+    requires org.opendaylight.yangtools.yang.data.util;
+    requires org.opendaylight.yangtools.yang.model.util;
+}