Convert rfc6643-model-api to JPMS 73/93173/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 11:19:58 +0000 (13:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 11:20:09 +0000 (13:20 +0200)
This is a simplistic module, convert it.

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

index 2f42fb863129ab5d83267074dc3ec21d5c085e39..7b6b28c7836a9f13d194d757688f887e845953df 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.rfc6643.model.api</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/yang/rfc6643-model-api/src/main/java/module-info.java b/yang/rfc6643-model-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..4a02481
--- /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
+ */
+// 'rfc6643' in the name ends with a digit
+@SuppressWarnings("module")
+module org.opendaylight.yangtools.rfc6643.model.api {
+    exports org.opendaylight.yangtools.rfc6643.model.api;
+
+    requires transitive org.opendaylight.yangtools.yang.model.api;
+}