twitter-finagle

Is there a simple way to specify a global dependency exclude in SBT

廉价感情. 提交于 2020-05-24 21:06:07
问题 How would you exclude a transitive dependency globally? My project depends on a lot of the Twitter libraries or on libraries that depend on the Twitter libraries. I don't want slf4j-jdk14 in my classpath, no matter what (I use logback as slf4j binding). Currently I do this: "com.twitter" %% "finagle-thriftmux" % "6.16.0" exclude("org.slf4j", "slf4j-jdk14") but every time someone adds another dependency that uses slf4j-jdk14 I might get it back into the classpath. 回答1: Since sbt 0.13.8 In sbt

What are advantages of a Twitter Future over a Scala Future?

早过忘川 提交于 2019-12-03 04:25:33
问题 I know a lot of reasons for Scala Future to be better. Are there any reasons to use Twitter Future instead? Except the fact Finagle uses it. 回答1: Disclaimer: I worked at Twitter on the Future implementation. A little bit of context, we started our own implementation before Scala had a "good" implementation of Future . Here're the features of Twitter's Future : Some method names are different and Twitter's Future has some new helper methods in the companion. e.g. Just one example: Future.join