Convert netconf-dom-api to a JPMS module 18/106818/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Jul 2023 16:13:57 +0000 (18:13 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Jul 2023 16:13:57 +0000 (18:13 +0200)
This is a simple artifact, convert it to a module and fix its
dependencies to eliminate warnings.

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

index 71dcacb42f171cfbe8a66b1d91dfcc7ce11a91ee..c54aa143b653a7947fef7f697a1e4b8f4a44ee3c 100644 (file)
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.eclipse.jdt</groupId>
+            <artifactId>org.eclipse.jdt.annotation</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-data-api</artifactId>
diff --git a/plugins/netconf-dom-api/src/main/java/module-info.java b/plugins/netconf-dom-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..c7e3907
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * 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.dom.api {
+    exports org.opendaylight.netconf.dom.api;
+    exports org.opendaylight.netconf.dom.api.tx;
+
+    requires transitive org.opendaylight.yangtools.yang.data.api;
+    requires transitive org.opendaylight.mdsal.dom.api;
+    requires transitive org.opendaylight.netconf.api;
+    requires com.google.common;
+
+    // Annotation-only dependencies
+    requires static transitive org.eclipse.jdt.annotation;
+    requires static com.github.spotbugs.annotations;
+}