From ec84e1f3a4734a2671a113c9cc42631e20764d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Kemal=20=C3=96calan?= Date: Sat, 18 Jul 2020 15:15:10 +0300 Subject: [PATCH] Fix jackson sbt assembly duplicate depends issue --- build.sbt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/build.sbt b/build.sbt index 6d68e458ea1..f61cecec30b 100644 --- a/build.sbt +++ b/build.sbt @@ -475,7 +475,7 @@ lazy val finagleZipkinCore = Project( libraryDependencies ++= Seq( util("codec"), util("core"), - util("stats")) ++ scroogeLibs ++ jacksonLibs + util("stats")) ++ scroogeLibs ).dependsOn(finagleCore, finagleThrift) lazy val finagleZipkinScribe = Project( @@ -497,8 +497,7 @@ lazy val finagleException = Project( name := "finagle-exception", libraryDependencies ++= Seq( util("codec") - ) ++ scroogeLibs, - libraryDependencies ++= jacksonLibs + ) ++ scroogeLibs ).dependsOn(finagleCore, finagleThrift) lazy val finagleServersets = Project( @@ -520,7 +519,6 @@ lazy val finagleServersets = Project( ), "commons-lang" % "commons-lang" % "2.6" ), - libraryDependencies ++= jacksonLibs, libraryDependencies ++= scroogeLibs, ScroogeSBT.autoImport.scroogeLanguages in Compile := Seq("java"), excludeFilter in unmanagedSources := "ZkTest.scala", @@ -557,8 +555,7 @@ lazy val finagleTunable = Project( libraryDependencies ++= Seq( util("core"), util("tunable") - ), - libraryDependencies ++= jacksonLibs + ) ).dependsOn(finagleToggle) // Protocol support @@ -646,8 +643,7 @@ lazy val finagleMemcached = Project( util("zk-test") % "test", "com.twitter" %% "bijection-core" % "0.9.7", "org.apache.thrift" % "libthrift" % libthriftVersion - ), - libraryDependencies ++= jacksonLibs + ) ).dependsOn( // NOTE: Order is important here. // finagleNetty4 must come before finagleCore here, otherwise @@ -720,7 +716,7 @@ lazy val finagleMySQL = Project( util("stats"), caffeineLib, jsr305Lib - ) ++ jacksonLibs, + ), excludeFilter in unmanagedSources := { "EmbeddableMysql.scala" || "ClientTest.scala" }