Convert rfc8040-model-api to JPMS 74/93174/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 11:22:38 +0000 (13:22 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 11:36:56 +0000 (13:36 +0200)
This is a simplistic module, convert it.

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

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