You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.sbt 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. enablePlugins(GitVersioning)
  2. enablePlugins(GitBranchPrompt)
  3. enablePlugins(BuildInfoPlugin)
  4. lazy val root = (project in file(".")).
  5. settings(
  6. inThisBuild(List(
  7. organization := "cnolle",
  8. scalaVersion := "2.12.6"
  9. )),
  10. name := "inoio-coding-challenge"
  11. ).settings(dependencyCheckSuppressionFiles += file("suppress-checks.xml"))
  12. .settings(dependencyCheckFailBuildOnCVSS := 1)
  13. .settings(
  14. buildInfoOptions += BuildInfoOption.BuildTime,
  15. buildInfoOptions += BuildInfoOption.ToJson,
  16. buildInfoPackage := "de.codingchallenge",
  17. buildInfoOptions += BuildInfoOption.Traits("de.codingchallenge.logging.LoggerContextInfo"),
  18. buildInfoKeys := Seq[BuildInfoKey](name, version, "gitHash" -> git.gitHeadCommit.value.getOrElse("emptyRepository"))
  19. )
  20. lazy val compileDependencies = {
  21. val macVersion = "2.3.1"
  22. val prometheusVersion = "0.4.0"
  23. Seq(
  24. "com.typesafe.scala-logging" %% "scala-logging"% "3.7.1",
  25. "ch.qos.logback" % "logback-classic" % "1.2.3",
  26. "org.codehaus.janino" % "janino" % "3.0.8",
  27. "net.logstash.logback" % "logstash-logback-encoder" % "4.11",
  28. "com.softwaremill.macwire" %% "macros" % macVersion,
  29. "com.softwaremill.macwire" %% "util" % macVersion,
  30. "com.softwaremill.macwire" %% "proxy" % macVersion,
  31. "io.prometheus" % "simpleclient" % prometheusVersion,
  32. "io.prometheus" % "simpleclient_hotspot" % prometheusVersion,
  33. "fr.davit" %% "akka-http-prometheus" % "0.1.1",
  34. "com.typesafe.akka" %% "akka-slf4j" % "2.5.12",
  35. "com.typesafe.akka" %% "akka-http" % "10.1.3",
  36. "com.typesafe.akka" %% "akka-actor" % "2.5.8",
  37. "com.typesafe.akka" %% "akka-stream" % "2.5.8",
  38. "com.typesafe.akka" %% "akka-stream-contrib" % "0.9"
  39. )
  40. }
  41. libraryDependencies ++= compileDependencies
  42. lazy val testDependencies = Seq(
  43. "com.typesafe.akka" %% "akka-http-testkit" % "10.0.5",
  44. "org.mockito" % "mockito-inline" % "2.20.1",
  45. "org.scalatest" %% "scalatest" % "3.0.1"
  46. // "org.scalamock" %% "scalamock-scalatest-support" % "3.5.0"
  47. ).map(_ % "test")
  48. libraryDependencies ++= testDependencies