Fix classpath issue w/ guava
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Thu, 17 Jan 2019 21:47:46 +0000 (16:47 -0500)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 18 Jan 2019 13:08:02 +0000 (08:08 -0500)
Kotlin compiler embeded guava dependency, hence it's ending w/ a classpath
issue.
kotlin-compiler-embaddeable fixes this issue, and is getting pulled already.
So we exclude koltin-compiler to avoid issue.

Change-Id: Ib703e4b4ac7a478f1918282b35bcd646f5c83038
Issue-ID: CCSDK-961
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
components/parent/pom.xml

index 8ecb2c1..365515a 100644 (file)
             <groupId>com.fasterxml.jackson.module</groupId>
             <artifactId>jackson-module-kotlin</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.jetbrains.kotlin</groupId>
+            <artifactId>kotlin-compiler-embeddable</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.jetbrains.kotlin</groupId>
             <artifactId>kotlin-scripting-jvm-host</artifactId>
+            <!--Use kotlin-compiler-embeddable as koltin-compiler wrap-->
+            <!--guava dependency creating classpath issues at runtime-->
+            <exclusions>
+                <exclusion>
+                    <groupId>org.jetbrains.kotlin</groupId>
+                    <artifactId>kotlin-compiler</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <!-- GRPC Dependencies -->
         <dependency>