From a1ffd088cbcaf7fd2647882ffd39257fa0e8768c Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 6 Nov 2020 20:01:32 +0100 Subject: [PATCH] Convert yang-binding to a JPMS module The code itself is simple, just export it. UTs need an override to allow use of Whitebox. JIRA: MDSAL-624 Change-Id: I1d1114473563fe9237df5855ef95c45318cd2ec9 Signed-off-by: Robert Varga --- binding/yang-binding/pom.xml | 10 ++++------ .../src/main/java/module-info.java | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 binding/yang-binding/src/main/java/module-info.java diff --git a/binding/yang-binding/pom.xml b/binding/yang-binding/pom.xml index 2c8d426e4b..07a4a5359c 100644 --- a/binding/yang-binding/pom.xml +++ b/binding/yang-binding/pom.xml @@ -17,7 +17,6 @@ yang-binding - 7.0.2-SNAPSHOT bundle ${project.artifactId} Java binding for YANG @@ -49,12 +48,11 @@ - org.apache.felix - maven-bundle-plugin + maven-surefire-plugin - - org.opendaylight.yangtools.yang.binding - + @{argLine} + --add-opens org.opendaylight.yangtools.yang.binding/org.opendaylight.yangtools.yang.binding=ALL-UNNAMED + diff --git a/binding/yang-binding/src/main/java/module-info.java b/binding/yang-binding/src/main/java/module-info.java new file mode 100644 index 0000000000..d9640ba06c --- /dev/null +++ b/binding/yang-binding/src/main/java/module-info.java @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2020 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.binding { + exports org.opendaylight.yangtools.yang.binding; + exports org.opendaylight.yangtools.yang.binding.annotations; + exports org.opendaylight.yangtools.yang.binding.util; + + requires transitive org.opendaylight.yangtools.yang.common; + requires org.opendaylight.yangtools.util; + + // Annotations + requires static transitive org.eclipse.jdt.annotation; + requires static com.github.spotbugs.annotations; +} -- 2.36.6