Convert yang-common-netty to JPMS 57/95457/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 10 Mar 2021 07:44:06 +0000 (08:44 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 10 Mar 2021 07:44:45 +0000 (08:44 +0100)
This is a very simple component, convert it.

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

index 6915caea0172c5c3aef943756fe8a7ce3f657ccd..6f2322bf78e16210f6f0ead9351cb41a34001707 100644 (file)
             <artifactId>netty-buffer</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.common.netty</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>
diff --git a/yang/yang-common-netty/src/main/java/module-info.java b/yang/yang-common-netty/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..ea761d4
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2021 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.common.netty {
+    exports org.opendaylight.yangtools.yang.common.netty;
+
+    requires transitive io.netty.buffer;
+    requires transitive org.opendaylight.yangtools.yang.common;
+    requires com.google.common;
+
+    // Annotations
+    requires static transitive org.eclipse.jdt.annotation;
+}