From 314d3ee0f5e0c438f3e4e217d7481f1fb8d565ac Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 26 Oct 2021 17:25:17 +0200 Subject: [PATCH 1/1] Migrate concepts to bnd-parent A straightforward migration to use bnd-maven-plugin. Change-Id: Ie8bb442046b611eeec072a3e4f18eb98f955ef80 Signed-off-by: Robert Varga --- bnd-parent/pom.xml | 44 +++++++++++++++++++ bundle-parent/pom.xml | 2 +- common/concepts/bnd.bnd | 1 + common/concepts/pom.xml | 10 +++-- .../concepts/src/main/java/module-info.java | 1 + .../yangtools/concepts/package-info.java | 14 ++++++ pom.xml | 1 + 7 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 bnd-parent/pom.xml create mode 100644 common/concepts/bnd.bnd create mode 100644 common/concepts/src/main/java/org/opendaylight/yangtools/concepts/package-info.java diff --git a/bnd-parent/pom.xml b/bnd-parent/pom.xml new file mode 100644 index 0000000000..1653265276 --- /dev/null +++ b/bnd-parent/pom.xml @@ -0,0 +1,44 @@ + + + + + 4.0.0 + + org.opendaylight.odlparent + bnd-parent + 9.0.12 + + + + org.opendaylight.yangtools + bnd-parent + 8.0.0-SNAPSHOT + pom + ${project.artifactId} + Bundle parent (bnd-based) + + + + + org.opendaylight.yangtools + yangtools-artifacts + 8.0.0-SNAPSHOT + import + pom + + + + + + scm:git:ssh://git.opendaylight.org:29418/yangtools.git + scm:git:ssh://git.opendaylight.org:29418/yangtools.git + HEAD + https://wiki.opendaylight.org/display/ODL/YANG+Tools + + diff --git a/bundle-parent/pom.xml b/bundle-parent/pom.xml index 2c97846a47..919cad7a97 100644 --- a/bundle-parent/pom.xml +++ b/bundle-parent/pom.xml @@ -21,7 +21,7 @@ 8.0.0-SNAPSHOT pom ${project.artifactId} - Bundle parent + Bundle parent (felix-based) diff --git a/common/concepts/bnd.bnd b/common/concepts/bnd.bnd new file mode 100644 index 0000000000..544a02c9c4 --- /dev/null +++ b/common/concepts/bnd.bnd @@ -0,0 +1 @@ +Import-Package: org.checkerframework.*;resolution:=optional, * diff --git a/common/concepts/pom.xml b/common/concepts/pom.xml index 1648657633..e3b7386849 100644 --- a/common/concepts/pom.xml +++ b/common/concepts/pom.xml @@ -11,13 +11,13 @@ 4.0.0 org.opendaylight.yangtools - bundle-parent + bnd-parent 8.0.0-SNAPSHOT - ../../bundle-parent + ../../bnd-parent concepts - bundle + jar ${project.artifactId} Common concepts @@ -31,6 +31,10 @@ checker-qual provided + + org.osgi + osgi.annotation + org.opendaylight.yangtools mockito-configuration diff --git a/common/concepts/src/main/java/module-info.java b/common/concepts/src/main/java/module-info.java index bc99c7d6db..dae5498a8a 100644 --- a/common/concepts/src/main/java/module-info.java +++ b/common/concepts/src/main/java/module-info.java @@ -15,4 +15,5 @@ module org.opendaylight.yangtools.concepts { requires static transitive org.eclipse.jdt.annotation; requires static com.github.spotbugs.annotations; requires static org.checkerframework.checker.qual; + requires static osgi.annotation; } diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/package-info.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/package-info.java new file mode 100644 index 0000000000..bee8ec2af7 --- /dev/null +++ b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/package-info.java @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2022 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 + */ +/** + * Concept used widely across OpenDaylight code base. + */ +@Export +package org.opendaylight.yangtools.concepts; + +import org.osgi.annotation.bundle.Export; diff --git a/pom.xml b/pom.xml index c4b49d3e6b..80fa8ff292 100644 --- a/pom.xml +++ b/pom.xml @@ -40,6 +40,7 @@ features benchmarks + bnd-parent bundle-parent codec common -- 2.36.6