Convert rfc7952-data-api to JPMS 43/93143/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Oct 2020 16:02:31 +0000 (18:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 09:05:45 +0000 (11:05 +0200)
This is extremely simple artifact, convert it to JPMS. Note that
this also shows unneded dependency on rfc7952-model-api, which is
removed.

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

index 45af0255aecd76f6eb0e3775ef3fec14a83d9acc..f43b594c0cc01831db387ff0f2b7b94b5f5a324e 100644 (file)
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-data-api</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>rfc7952-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.data.api</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/yang/rfc7952-data-api/src/main/java/module-info.java b/yang/rfc7952-data-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..aad391f
--- /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.data.api {
+    exports org.opendaylight.yangtools.rfc7952.data.api;
+
+    requires transitive org.opendaylight.yangtools.yang.data.api;
+}