Convert rfc7952-model-api to JPMS 42/93142/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Oct 2020 15:59:55 +0000 (17:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 09:05:45 +0000 (11:05 +0200)
This is a simplistic module, convert it.

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

index 58f4332319c5ab3f44c2c2ce7c16382389e1367d..36e0c11421bb7d2967fc3b09edf51d5fb283b365 100644 (file)
             <artifactId>yang-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.rfc7952.model.api</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/yang/rfc7952-model-api/src/main/java/module-info.java b/yang/rfc7952-model-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..8756868
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * 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
+ */
+// 'rfc7952' in the name ends with a digit
+@SuppressWarnings("module")
+module org.opendaylight.yangtools.rfc7952.model.api {
+    exports org.opendaylight.yangtools.rfc7952.model.api;
+
+    requires transitive org.opendaylight.yangtools.yang.model.api;
+}