Convert yang-parser-reactor to a JPMS module 49/93249/4
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 21 Oct 2020 23:43:50 +0000 (01:43 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Oct 2020 10:39:08 +0000 (12:39 +0200)
The reactor does not have that many dependencies, convert it.

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

index 1d1b6460ac56315e67851feaa2fd881a7a517cda..8b856c98622dc084fe12c46d5dfe41cfd5f6ec8e 100644 (file)
             <artifactId>yang-model-util</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.reactor</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/yang/yang-parser-reactor/src/main/java/module-info.java b/yang/yang-parser-reactor/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..63fbce8
--- /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
+ */
+module org.opendaylight.yangtools.yang.parser.reactor {
+    exports org.opendaylight.yangtools.yang.parser.stmt.reactor;
+
+    requires transitive org.opendaylight.yangtools.yang.parser.spi;
+    requires org.opendaylight.yangtools.yang.model.util;
+    requires org.opendaylight.yangtools.util;
+}