BUG-7446: inline xbase-lib 11/50911/4
authorRobert Varga <rovarga@cisco.com>
Wed, 25 Jan 2017 10:20:06 +0000 (11:20 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 26 Jan 2017 22:30:17 +0000 (22:30 +0000)
xbase-lib requires Guava [14.0,19), leaving us with two options:
- ship two guava versions
- eliminate YangTemplate.xtend
- inline xtext-lib binding it to Guava 21

Take the last approach, choosing not to bloat the distribution.

Change-Id: Ibd2a91ed9bf52c1d3a942282ee53b951f5d42e6b
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-generator-impl/pom.xml
common/features/features-mdsal/pom.xml
common/features/features-mdsal/src/main/features/features.xml

index 18025f7da82aa987c12f9887885bf7ac9b3d98ba..5f1767b4978797bded099e977913e8238ffaf981 100644 (file)
@@ -81,6 +81,7 @@
         <dependency>
             <groupId>org.eclipse.xtext</groupId>
             <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
+            <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
                             {local-packages},
                             org.opendaylight.yangtools.sal.binding.generator.impl,
                         </Export-Package>
+                        <Embed-Transitive>true</Embed-Transitive>
+                        <Embed-Dependency>org.eclipse.xtext.xbase.lib;inline</Embed-Dependency>
                     </instructions>
                 </configuration>
             </plugin>
index a8c8c0c378835c936d10529bb3d2390c72a7948f..03d0da097205ef1a71f3a8845e531d523c2ef012 100644 (file)
             <type>xml</type>
         </dependency>
 
-
-        <dependency>
-            <groupId>org.eclipse.xtext</groupId>
-            <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
-        </dependency>
-
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>mdsal-common-api</artifactId>
index 50b29417b5053cecf5d1c9b36bf936b0d7597560..43311d60711d966dc30291ead39a8b3ee20ef84a 100644 (file)
@@ -54,7 +54,6 @@
         <feature version='${project.version}' dependency="true">odl-mdsal-binding-base</feature>
         <bundle dependency="true">mvn:org.javassist/javassist/{{VERSION}}</bundle>
         <bundle dependency="true">mvn:org.apache.commons/commons-lang3/{{VERSION}}</bundle>
-        <bundle dependency="true">mvn:org.eclipse.xtext/org.eclipse.xtext.xbase.lib/{{VERSION}}</bundle>
         <bundle>mvn:org.opendaylight.mdsal/mdsal-binding-generator-api/{{VERSION}}</bundle>
         <bundle>mvn:org.opendaylight.mdsal/mdsal-binding-generator-impl/{{VERSION}}</bundle>
         <bundle>mvn:org.opendaylight.mdsal/mdsal-binding-generator-util/{{VERSION}}</bundle>