From: Robert Varga Date: Wed, 5 Jul 2023 16:13:57 +0000 (+0200) Subject: Convert netconf-dom-api to a JPMS module X-Git-Tag: v6.0.1~44 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=7d0378cebb77436e359a822e8b6414a33c42d275;p=netconf.git Convert netconf-dom-api to a JPMS module 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 --- diff --git a/plugins/netconf-dom-api/pom.xml b/plugins/netconf-dom-api/pom.xml index 71dcacb42f..c54aa143b6 100644 --- a/plugins/netconf-dom-api/pom.xml +++ b/plugins/netconf-dom-api/pom.xml @@ -31,6 +31,10 @@ com.google.guava guava + + org.eclipse.jdt + org.eclipse.jdt.annotation + org.opendaylight.yangtools yang-data-api 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 index 0000000000..c7e3907d60 --- /dev/null +++ b/plugins/netconf-dom-api/src/main/java/module-info.java @@ -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; +}