Convert yang-parser-api to JPMS module 45/93145/7
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Oct 2020 16:14:54 +0000 (18:14 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Oct 2020 10:39:08 +0000 (12:39 +0200)
This again extremely simple, allowing further progress.

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

index 3a221633819b5e2d0a84faa70181e4a2ac4ac879..c9e988268582aba1c1e5441efd82c00571a35329 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.yang.parser.api</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>
diff --git a/yang/yang-parser-api/src/main/java/module-info.java b/yang/yang-parser-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..55ab5b2
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * 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
+ */
+module org.opendaylight.yangtools.yang.parser.api {
+    exports org.opendaylight.yangtools.yang.model.parser.api;
+
+    requires transitive org.opendaylight.yangtools.yang.model.api;
+}