I am actually using scala 2.12. My build is a bit more complex, but here is 
an extract of it:

scalaVersion := "2.12.2",




val akkaV = "2.4.17"
val akkaHttpV = "10.0.4"
val scalaTestV = "3.0.3"
val scalaCheckV = "1.13.5"
val kafkaV = "0.10.0.1"
val reactiveKafkaV = "0.13"
val logbackV = "1.2.3"
val prometheusV = "0.0.23"

lazy val dyno = (project in file(".")).aggregate(
  common,
  analyzer,
  aggregator,
  inspector
).settings(CommonSettings.buildSettings)

lazy val common = (project in file("common"))
  .settings(CommonSettings.buildSettings)
  .settings(
    libraryDependencies ++= Seq(
      "org.apache.avro" % "avro" % "1.8.1",
      "com.typesafe" % "config" % "1.3.1",

      "com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
      "io.spray" %%  "spray-json" % "1.3.3",
      "org.json4s" %% "json4s-jackson" % "3.5.2",
      "org.apache.kafka" % "kafka-clients" % kafkaV,
      "org.apache.kafka" % "kafka_2.11" % kafkaV intransitive,
      "io.confluent" % "kafka-avro-serializer" % "3.2.0" 
excludeAll(ExclusionRule(organization = "ch.qos.logback"), 
ExclusionRule(organization = "org.slf4j")),
      "nl.grons" %% "metrics-scala" % "3.5.6",
      "io.prometheus" % "simpleclient" % prometheusV,

      "org.scalatest" %% "scalatest" % scalaTestV % "test",
      "org.scalacheck" %% "scalacheck" % scalaCheckV % "test"
    ),
    fork in run := true,
    specificAvroSettings
  )


lazy val analyzer = (project in file("analyzer"))
  .settings(CommonSettings.buildSettings)
  .settings(
    libraryDependencies ++= Seq(
      "com.typesafe.akka" %% "akka-actor" % akkaV,
      "com.typesafe.akka" %% "akka-stream" % akkaV,
      "com.typesafe.akka" %% "akka-stream-kafka" % reactiveKafkaV,
      "com.typesafe.akka" %% "akka-http" % akkaHttpV,
      "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpV,
      "com.typesafe.akka" %% "akka-slf4j" % akkaV,
      "org.json4s" %% "json4s-jackson" % "3.5.2",
      "ch.qos.logback" % "logback-classic" % logbackV,
      "ch.qos.logback" % "logback-core" % logbackV,
      "com.storm-enroute" %% "scalameter" % "0.8.2" excludeAll 
ExclusionRule(organization = "org.mongodb"), // exclusion necessary to avoid 
build error on 2.12
      "io.prometheus" % "simpleclient" % prometheusV,
      "io.prometheus" % "simpleclient_common" % prometheusV,
      "io.prometheus" % "simpleclient_hotspot" % prometheusV,
      "org.scalatest" %% "scalatest" % scalaTestV % "test",
      "org.scalacheck" %% "scalacheck" % scalaCheckV % "test",
      "com.typesafe.akka" %% "akka-stream-testkit" % akkaV % "test"
    )
  )
  .enablePlugins(SbtNativePackager, DockerPlugin, JavaAppPackaging)
  .settings(
    javaOptions in Universal ++= Seq(
      "-J-Xmn4g",
      "-J-Xms16g",
      "-J-Xmx16g"
    )
  )
  .dependsOn(common)

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to