Convert transport-api into a JPMS module 19/106819/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Jul 2023 16:55:32 +0000 (18:55 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Jul 2023 16:55:32 +0000 (18:55 +0200)
This is a simple APi. Fix its dependencies and convert it to a proper
module.

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

index 8ebd9585718c60283bb0c9664734e01938ca571a..d8f5b61bc887b7423b44015bcc5efff4b6e019d7 100644 (file)
             <groupId>io.netty</groupId>
             <artifactId>netty-transport</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.eclipse.jdt</groupId>
+            <artifactId>org.eclipse.jdt.annotation</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-common</artifactId>
diff --git a/transport/transport-api/src/main/java/module-info.java b/transport/transport-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..333ebba
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2023 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.netconf.transport.api {
+    exports org.opendaylight.netconf.transport.api;
+
+    requires transitive com.google.common;
+    requires transitive io.netty.common;
+    requires transitive io.netty.transport;
+    requires transitive org.opendaylight.yangtools.yang.common;
+
+    // Annotation-only dependencies
+    requires static transitive org.eclipse.jdt.annotation;
+}