This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
89 lines (69 loc) · 2.54 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import Dependencies._
name := "scala-tron"
scalaVersion := "2.12.4"
version := "0.1"
scalacOptions += "-Ypartial-unification"
scalacOptions in Test ++= Seq("-Yrangepos")
fork in Test := true
val defaultSettings = Seq(
// Main
"org.slf4j" % "slf4j-api" % "1.7.25",
"org.slf4j" % "jcl-over-slf4j" % "1.7.25",
"log4j" % "log4j" % "1.2.17",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"commons-codec" % "commons-codec" % "1.11",
"com.madgag.spongycastle" % "core" % "1.53.0.0",
"com.madgag.spongycastle" % "prov" % "1.53.0.0",
"com.google.guava" % "guava" % "18.0",
"org.iq80.leveldb" % "leveldb" % "0.10",
"org.fusesource.leveldbjni" % "leveldbjni-all" % "1.8",
"org.apache.commons" % "commons-collections4" % "4.0",
"com.typesafe" % "config" % "1.3.2",
"com.google.code.findbugs" % "jsr305" % "3.0.0",
"com.cedarsoftware" % "java-util" % "1.8.0",
"org.apache.commons" % "commons-lang3" % "3.4",
"org.apache.commons" % "commons-collections4" % "4.0",
"com.beust" % "jcommander" % "1.72",
"com.github.etaty" %% "rediscala" % "1.8.0",
"joda-time" % "joda-time" % "2.3",
"org.apache.kafka" %% "kafka" % "0.11.0.2",
// Alpakka
"com.lightbend.akka" %% "akka-stream-alpakka-file" % "0.15.1",
"com.google.inject" % "guice" % "4.1.0",
//
"commons-io" % "commons-io" % "2.6",
// Cats
"org.typelevel" %% "cats-core" % "1.0.1",
"org.typelevel" %% "cats-effect" % "0.5",
"com.typesafe.akka" %% "akka-stream-kafka" % "0.18",
// Test
"org.specs2" %% "specs2-core" % "4.0.2" % "test",
"com.google.protobuf" % "protobuf-java" % "3.4.0" % "protobuf",
"org.scala-lang.modules" %% "scala-async" % "0.9.6",
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"org.scalatest" %% "scalatest" % "3.0.4" % Test
) ++ akkaDeps ++ grpcDeps ++ scaleCubeDeps
lazy val protocol = (project in file("tron-protocol"))
.settings(
libraryDependencies ++= defaultSettings,
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
),
parallelExecution in Test := false,
fork in Test := true
)
lazy val api = (project in file("tron-api"))
.settings(
libraryDependencies ++= defaultSettings ++ Seq(
"com.typesafe.play" %% "play" % "2.6.11",
"com.typesafe.play" %% "play-akka-http-server" % "2.6.11"
)
)
.dependsOn(protocol)
lazy val cli = (project in file("tron-cli"))
.settings(
mainClass in Compile := Some("org.tron.cli.App"),
libraryDependencies ++= defaultSettings
)
.dependsOn(protocol, api)
.aggregate(protocol, api)