Split out odl-controller-dom-api 11/81911/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 6 May 2019 16:12:41 +0000 (18:12 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 6 May 2019 16:21:02 +0000 (18:21 +0200)
This refactors packaging so that we package DOM-level APIs
in a corresponding feature -- mirroring MD-SAL's setup. We also fix
dependencies on MD-SAL features to use ranges instead of fixed
versions.

JIRA: CONTROLLER-1584
Change-Id: Ib5e0649552b34662a91b4fb32da9af69f589bb6b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/config-netty/odl-config-netty/pom.xml
features/config-netty/odl-config-netty/src/main/feature/feature.xml
features/mdsal/features-mdsal/pom.xml
features/mdsal/odl-controller-dom-api/pom.xml [new file with mode: 0644]
features/mdsal/odl-controller-dom-api/src/main/feature/feature.xml [new file with mode: 0644]
features/mdsal/odl-controller-mdsal-common/src/main/feature/feature.xml [new file with mode: 0644]
features/mdsal/odl-mdsal-broker-local/pom.xml
features/mdsal/pom.xml
opendaylight/md-sal/mdsal-artifacts/pom.xml

index 3ea5dadbed07f5e4692fe6b073bee7d40be957b7..18dd30fa00bc749b40bff66549b2c24af65a7620 100644 (file)
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>mdsal-artifacts</artifactId>
+                <version>1.10.0-SNAPSHOT</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
         </dependencies>
     </dependencyManagement>
 
@@ -43,8 +50,8 @@
             <classifier>features</classifier>
         </dependency>
         <dependency>
-            <groupId>org.opendaylight.odlparent</groupId>
-            <artifactId>odl-guava</artifactId>
+            <groupId>org.opendaylight.controller</groupId>
+            <artifactId>odl-controller-dom-api</artifactId>
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
index 931e6991f0f8bd38ce8e15d99fa3efcc15053716..052097b5d7d7aef9351fc68c959246b1d374b969 100644 (file)
@@ -8,7 +8,6 @@
  -->
 <features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-config-netty">
     <feature name="odl-config-netty">
-        <feature version="[5,6)">odl-guava</feature>
         <feature version="[5,6)">odl-netty-4</feature>
     </feature>
 </features>
index 99faee1c6f408e863684d16489c4f9e2122d28c3..5a1bbfbdc4d9cf5d39a3d5cecf2a745fbd9f8b58 100644 (file)
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>odl-controller-dom-api</artifactId>
+            <version>${project.version}</version>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>odl-mdsal-distributed-datastore</artifactId>
diff --git a/features/mdsal/odl-controller-dom-api/pom.xml b/features/mdsal/odl-controller-dom-api/pom.xml
new file mode 100644 (file)
index 0000000..2f5b95d
--- /dev/null
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2019 PANTHEON.tech, s.r.o. and others.
+
+ 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
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>single-feature-parent</artifactId>
+        <version>5.0.0</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>org.opendaylight.controller</groupId>
+    <artifactId>odl-controller-dom-api</artifactId>
+    <version>1.10.0-SNAPSHOT</version>
+    <packaging>feature</packaging>
+
+    <name>OpenDaylight :: Controller :: DOM API and SPI</name>
+    <description>Controller DOM APIs</description>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.opendaylight.mdsal</groupId>
+                <artifactId>mdsal-artifacts</artifactId>
+                <version>4.0.0</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>mdsal-artifacts</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.opendaylight.mdsal</groupId>
+            <artifactId>odl-mdsal-dom-api</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
+        <dependency>
+            <groupId>org.opendaylight.controller</groupId>
+            <artifactId>odl-controller-mdsal-common</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>sal-core-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>sal-core-spi</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>sal-core-compat</artifactId>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/features/mdsal/odl-controller-dom-api/src/main/feature/feature.xml b/features/mdsal/odl-controller-dom-api/src/main/feature/feature.xml
new file mode 100644 (file)
index 0000000..f3f8161
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2019 PANTHEON.tech, s.r.o. and others.
+
+ 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
+ -->
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="odl-controller-dom-api-${project.version}">
+    <feature name="odl-controller-dom-api" version="${project.version}">
+        <feature version="[4,5)">odl-mdsal-dom-api</feature>
+    </feature>
+</features>
diff --git a/features/mdsal/odl-controller-mdsal-common/src/main/feature/feature.xml b/features/mdsal/odl-controller-mdsal-common/src/main/feature/feature.xml
new file mode 100644 (file)
index 0000000..b01808c
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2019 PANTHEON.tech, s.r.o. and others.
+
+ 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
+ -->
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="odl-controller-mdsal-common-${project.version}">
+    <feature name="odl-controller-mdsal-common" version="${project.version}">
+        <feature version="[4,5)">odl-mdsal-common</feature>
+        <feature version="[4,5)">odl-mdsal-binding-runtime</feature>
+    </feature>
+</features>
index 14e06c7e2223b58353cfc7a7e6ce206330325c52..af41046c11c7895444579cc3a5d0a4b0c486896c 100644 (file)
             <type>xml</type>
             <classifier>features</classifier>
         </dependency>
-        <dependency>
-            <groupId>${project.groupId}</groupId>
-            <artifactId>sal-core-api</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>${project.groupId}</groupId>
-            <artifactId>sal-core-spi</artifactId>
-        </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>sal-broker-impl</artifactId>
index cec66b3290dc549f3183c3b3588126f5f6dc1e42..9234d3e472827e77879a58b62d5781043da40a43 100644 (file)
@@ -25,6 +25,7 @@
         <module>features-mdsal</module>
         <module>odl-clustering-test-app</module>
         <module>odl-controller-mdsal-common</module>
+        <module>odl-controller-dom-api</module>
         <module>odl-mdsal-all</module>
         <module>odl-mdsal-broker</module>
         <module>odl-mdsal-broker-local</module>
index 972cab3f383267b007f7d5509afc0993c305ecda..5f42ff3531e9f1c6189d990a224d4a0a290d304d 100644 (file)
                 <type>xml</type>
                 <classifier>features</classifier>
             </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>odl-controller-dom-api</artifactId>
+                <version>${project.version}</version>
+                <type>xml</type>
+                <classifier>features</classifier>
+            </dependency>
             <dependency>
                 <groupId>${project.groupId}</groupId>
                 <artifactId>odl-mdsal-distributed-datastore</artifactId>