Add odl-antlr4 feature 59/77059/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 17 Oct 2018 09:53:04 +0000 (11:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 17 Oct 2018 09:53:04 +0000 (11:53 +0200)
We have multiple downstream features packaging antlr4-runtime,
add is a feature so we can reuse a single source of it.

Change-Id: I1cf38630f289c76f4e2fcee2c6c84699fe6d1c6f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/features-odlparent/pom.xml
features/odl-antlr4/pom.xml [new file with mode: 0644]
features/odl-antlr4/src/main/history/dependencies.xml [new file with mode: 0644]
features/pom.xml
odlparent-artifacts/pom.xml

index 13413011d5c0db0d0a4debbd4e7994cbeeed358c..07bebe3853a52d983e66ad85f0428435171650fa 100644 (file)
     <name>ODL :: odlparent :: ${project.artifactId}</name>
 
     <dependencies>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>odl-antlr4</artifactId>
+            <classifier>features</classifier>
+            <type>xml</type>
+        </dependency>
+
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>odl-apache-commons-codec</artifactId>
diff --git a/features/odl-antlr4/pom.xml b/features/odl-antlr4/pom.xml
new file mode 100644 (file)
index 0000000..a8b1c40
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2018 Pantheon Technologies, 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
+ -->
+<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>4.0.3-SNAPSHOT</version>
+        <relativePath>../../single-feature-parent</relativePath>
+    </parent>
+
+    <groupId>org.opendaylight.odlparent</groupId>
+    <artifactId>odl-antlr4</artifactId>
+    <version>4.0.3-SNAPSHOT</version>
+    <packaging>feature</packaging>
+
+    <name>OpenDaylight :: ANTLRv4 Runtime</name>
+
+    <properties>
+        <checkDependencyChange>true</checkDependencyChange>
+        <failOnDependencyChange>true</failOnDependencyChange>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.antlr</groupId>
+            <artifactId>antlr4-runtime</artifactId>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/features/odl-antlr4/src/main/history/dependencies.xml b/features/odl-antlr4/src/main/history/dependencies.xml
new file mode 100644 (file)
index 0000000..dc738bb
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" name="odl-antlr4">
+    <feature version="0.0.0">
+        <bundle>mvn:org.antlr/antlr4-runtime/4.7.1</bundle>
+    </feature>
+</features>
index 51070c6da88b8ce17fb16ce9af512672d2865589..ad677411a2ee376c65d090da0f1977a4be8ecdd2 100644 (file)
@@ -46,6 +46,7 @@
 
         <!-- General features -->
         <module>features-odlparent</module>
+        <module>odl-antlr4</module>
         <module>odl-apache-commons-codec</module>
         <module>odl-apache-commons-lang3</module>
         <module>odl-apache-commons-net</module>
index f7516de214aa1a9017d915b3090943979cbef98b..d92a9262d400aa9f7913c4097abd6c94eeac5c73 100644 (file)
                 <classifier>features</classifier>
                 <type>xml</type>
             </dependency>
+            <dependency>
+                <groupId>org.opendaylight.odlparent</groupId>
+                <artifactId>odl-antlr4</artifactId>
+                <version>${project.version}</version>
+                <classifier>features</classifier>
+                <type>xml</type>
+            </dependency>
             <dependency>
                 <groupId>org.opendaylight.odlparent</groupId>
                 <artifactId>odl-apache-commons-codec</artifactId>