Convert rfc6241-model-api to JPMS 71/93171/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 11:13:10 +0000 (13:13 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 11:13:52 +0000 (13:13 +0200)
This is a simplistic module, convert it.

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

index 94f49d081006f8c758022514cbc03754a0bb5ebc..bf8c1e252683d75f53348f77f52c3ac1b24c894a 100644 (file)
@@ -17,7 +17,6 @@
     </parent>
 
     <artifactId>rfc6241-model-api</artifactId>
-    <version>6.0.1-SNAPSHOT</version>
     <packaging>bundle</packaging>
     <name>${project.artifactId}</name>
     <description>RFC6241 extensions for unbound metadata</description>
             <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.rfc6241.model.api</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/yang/rfc6241-model-api/src/main/java/module-info.java b/yang/rfc6241-model-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..a758038
--- /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
+ */
+// 'rfc6241' in the name ends with a digit
+@SuppressWarnings("module")
+module org.opendaylight.yangtools.rfc6241.model.api {
+    exports org.opendaylight.yangtools.rfc6241.model.api;
+
+    requires transitive org.opendaylight.yangtools.yang.model.api;
+}