Content for build.sbt

  1. libraryDependencies ++= Seq(
  2. "com.amazonaws" % "aws-java-sdk" % "1.9.23" exclude("common-logging", "common-logging"),
  3. "org.joda" % "joda-convert" % "1.7",
  4. "joda-time" % "joda-time" % "2.7",
  5. "org.apache.druid" % "druid" % "0.8.1" excludeAll (
  6. ExclusionRule("org.ow2.asm"),
  7. ExclusionRule("com.fasterxml.jackson.core"),
  8. ExclusionRule("com.fasterxml.jackson.datatype"),
  9. ExclusionRule("com.fasterxml.jackson.dataformat"),
  10. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  11. ExclusionRule("com.fasterxml.jackson.module")
  12. ),
  13. "org.apache.druid" % "druid-services" % "0.8.1" excludeAll (
  14. ExclusionRule("org.ow2.asm"),
  15. ExclusionRule("com.fasterxml.jackson.core"),
  16. ExclusionRule("com.fasterxml.jackson.datatype"),
  17. ExclusionRule("com.fasterxml.jackson.dataformat"),
  18. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  19. ExclusionRule("com.fasterxml.jackson.module")
  20. ),
  21. "org.apache.druid" % "druid-indexing-service" % "0.8.1" excludeAll (
  22. ExclusionRule("org.ow2.asm"),
  23. ExclusionRule("com.fasterxml.jackson.core"),
  24. ExclusionRule("com.fasterxml.jackson.datatype"),
  25. ExclusionRule("com.fasterxml.jackson.dataformat"),
  26. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  27. ExclusionRule("com.fasterxml.jackson.module")
  28. ),
  29. "org.apache.druid" % "druid-indexing-hadoop" % "0.8.1" excludeAll (
  30. ExclusionRule("org.ow2.asm"),
  31. ExclusionRule("com.fasterxml.jackson.core"),
  32. ExclusionRule("com.fasterxml.jackson.datatype"),
  33. ExclusionRule("com.fasterxml.jackson.dataformat"),
  34. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  35. ExclusionRule("com.fasterxml.jackson.module")
  36. ),
  37. "org.apache.druid.extensions" % "mysql-metadata-storage" % "0.8.1" excludeAll (
  38. ExclusionRule("org.ow2.asm"),
  39. ExclusionRule("com.fasterxml.jackson.core"),
  40. ExclusionRule("com.fasterxml.jackson.datatype"),
  41. ExclusionRule("com.fasterxml.jackson.dataformat"),
  42. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  43. ExclusionRule("com.fasterxml.jackson.module")
  44. ),
  45. "org.apache.druid.extensions" % "druid-s3-extensions" % "0.8.1" excludeAll (
  46. ExclusionRule("org.ow2.asm"),
  47. ExclusionRule("com.fasterxml.jackson.core"),
  48. ExclusionRule("com.fasterxml.jackson.datatype"),
  49. ExclusionRule("com.fasterxml.jackson.dataformat"),
  50. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  51. ExclusionRule("com.fasterxml.jackson.module")
  52. ),
  53. "org.apache.druid.extensions" % "druid-histogram" % "0.8.1" excludeAll (
  54. ExclusionRule("org.ow2.asm"),
  55. ExclusionRule("com.fasterxml.jackson.core"),
  56. ExclusionRule("com.fasterxml.jackson.datatype"),
  57. ExclusionRule("com.fasterxml.jackson.dataformat"),
  58. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  59. ExclusionRule("com.fasterxml.jackson.module")
  60. ),
  61. "org.apache.druid.extensions" % "druid-hdfs-storage" % "0.8.1" excludeAll (
  62. ExclusionRule("org.ow2.asm"),
  63. ExclusionRule("com.fasterxml.jackson.core"),
  64. ExclusionRule("com.fasterxml.jackson.datatype"),
  65. ExclusionRule("com.fasterxml.jackson.dataformat"),
  66. ExclusionRule("com.fasterxml.jackson.jaxrs"),
  67. ExclusionRule("com.fasterxml.jackson.module")
  68. ),
  69. "com.fasterxml.jackson.core" % "jackson-annotations" % "2.3.0",
  70. "com.fasterxml.jackson.core" % "jackson-core" % "2.3.0",
  71. "com.fasterxml.jackson.core" % "jackson-databind" % "2.3.0",
  72. "com.fasterxml.jackson.datatype" % "jackson-datatype-guava" % "2.3.0",
  73. "com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.3.0",
  74. "com.fasterxml.jackson.jaxrs" % "jackson-jaxrs-base" % "2.3.0",
  75. "com.fasterxml.jackson.jaxrs" % "jackson-jaxrs-json-provider" % "2.3.0",
  76. "com.fasterxml.jackson.jaxrs" % "jackson-jaxrs-smile-provider" % "2.3.0",
  77. "com.fasterxml.jackson.module" % "jackson-module-jaxb-annotations" % "2.3.0",
  78. "com.sun.jersey" % "jersey-servlet" % "1.17.1",
  79. "mysql" % "mysql-connector-java" % "8.2.0",
  80. "org.scalatest" %% "scalatest" % "2.2.3" % "test",
  81. "org.mockito" % "mockito-core" % "1.10.19" % "test"
  82. )
  83. assemblyMergeStrategy in assembly := {
  84. case path if path contains "pom." => MergeStrategy.first
  85. case path if path contains "javax.inject.Named" => MergeStrategy.first
  86. case path if path contains "mime.types" => MergeStrategy.first
  87. case path if path contains "org/apache/commons/logging/impl/SimpleLog.class" => MergeStrategy.first
  88. case path if path contains "org/apache/commons/logging/impl/SimpleLog$1.class" => MergeStrategy.first
  89. case path if path contains "org/apache/commons/logging/impl/NoOpLog.class" => MergeStrategy.first
  90. case path if path contains "org/apache/commons/logging/LogFactory.class" => MergeStrategy.first
  91. case path if path contains "org/apache/commons/logging/LogConfigurationException.class" => MergeStrategy.first
  92. case path if path contains "org/apache/commons/logging/Log.class" => MergeStrategy.first
  93. case path if path contains "META-INF/jersey-module-version" => MergeStrategy.first
  94. case path if path contains ".properties" => MergeStrategy.first
  95. case path if path contains ".class" => MergeStrategy.first
  96. case x =>
  97. val oldStrategy = (assemblyMergeStrategy in assembly).value
  98. oldStrategy(x)
  99. }