From: Robert Varga Date: Wed, 5 Jul 2023 16:55:32 +0000 (+0200) Subject: Convert transport-api into a JPMS module X-Git-Tag: v6.0.1~43 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=30675dcaee67f0887bf79ccfbd1cd9078125e761;p=netconf.git Convert transport-api into a JPMS module This is a simple APi. Fix its dependencies and convert it to a proper module. Change-Id: I65cf64e461ea8f3751318bdcea07b9776488842b Signed-off-by: Robert Varga --- diff --git a/transport/transport-api/pom.xml b/transport/transport-api/pom.xml index 8ebd958571..d8f5b61bc8 100644 --- a/transport/transport-api/pom.xml +++ b/transport/transport-api/pom.xml @@ -34,6 +34,10 @@ io.netty netty-transport + + org.eclipse.jdt + org.eclipse.jdt.annotation + org.opendaylight.yangtools yang-common 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 index 0000000000..333ebba84c --- /dev/null +++ b/transport/transport-api/src/main/java/module-info.java @@ -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; +}