Add Scala packaging 79/92879/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 2 Oct 2020 16:57:24 +0000 (18:57 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 2 Oct 2020 19:12:25 +0000 (21:12 +0200)
This is a straight transplant of odl-scala-2.13 feature from
odlparent-7.0.6.

JIRA: CONTROLLER-1959
Change-Id: I7302b769961df092eaa7dbfbaaa90e723e70e263
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
artifacts/pom.xml
features/features-controller/pom.xml
features/odl-controller-scala/pom.xml [new file with mode: 0644]
features/odl-controller-scala/src/main/history/dependencies.xml [new file with mode: 0644]
features/pom.xml

index cdf6964efd19f2319111b05cdaf9a52fd9272d78..c5f7bc4e61efa8a2d9879cc7045cb7b807485344 100644 (file)
                 <classifier>features</classifier>
                 <type>xml</type>
             </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>odl-controller-scala</artifactId>
+                <version>${project.version}</version>
+                <type>xml</type>
+                <classifier>features</classifier>
+            </dependency>
             <dependency>
                 <groupId>${project.groupId}</groupId>
                 <artifactId>odl-mdsal-broker</artifactId>
index 0fe542ccb19f8d3db55d230d2c687ca55e68a02f..178d0e6b189a3a3e8c6e9a399dd4434b9cf75683 100644 (file)
     </dependencyManagement>
 
     <dependencies>
+        <dependency>
+            <groupId>org.opendaylight.controller</groupId>
+            <artifactId>odl-controller-scala</artifactId>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
         <dependency>
             <groupId>org.opendaylight.controller</groupId>
             <artifactId>odl-mdsal-broker</artifactId>
diff --git a/features/odl-controller-scala/pom.xml b/features/odl-controller-scala/pom.xml
new file mode 100644 (file)
index 0000000..1c474fe
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2016 Red Hat, Inc. 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
+ -->
+<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.controller</groupId>
+        <artifactId>single-feature-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../single-feature-parent</relativePath>
+    </parent>
+
+    <groupId>org.opendaylight.controller</groupId>
+    <artifactId>odl-controller-scala</artifactId>
+    <packaging>feature</packaging>
+
+    <name>Scala Runtime for OpenDaylight</name>
+
+    <properties>
+        <checkDependencyChange>true</checkDependencyChange>
+        <failOnDependencyChange>true</failOnDependencyChange>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-library</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-reflect</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.scala-lang.modules</groupId>
+            <artifactId>scala-java8-compat_2.13</artifactId>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/features/odl-controller-scala/src/main/history/dependencies.xml b/features/odl-controller-scala/src/main/history/dependencies.xml
new file mode 100644 (file)
index 0000000..9f991cb
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0" name="odl-controller-scala">
+    <feature version="0.0.0">
+        <bundle>mvn:org.scala-lang.modules/scala-java8-compat_2.13/0.9.1</bundle>
+        <bundle>mvn:org.scala-lang/scala-library/2.13.3</bundle>
+        <bundle>mvn:org.scala-lang/scala-reflect/2.13.3</bundle>
+    </feature>
+</features>
index f5e33eb59f6a357d366789ff4847efe99b83682c..bd87aab4f4f2cdaa11723c6df06ec9794d071efd 100644 (file)
@@ -42,6 +42,9 @@
     <module>odl-clustering-test-app</module>
     <module>odl-mdsal-benchmark</module>
 
+    <!-- Scala feature -->
+    <module>odl-controller-scala</module>
+
     <!-- Single features, to be cleaned up -->
     <module>odl-controller-blueprint</module>
     <module>odl-controller-mdsal-common</module>