forked from Cryptonomic/Conseil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
99 lines (88 loc) · 6.22 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
90
91
92
93
94
95
96
97
98
99
name := "Conseil"
scalaVersion := "2.12.8"
val akkaVersion = "2.5.21"
val akkaHttpVersion = "10.1.8"
val akkaHttpJsonVersion = "1.25.2"
val slickVersion = "3.3.0"
val catsVersion = "1.6.0"
val monocleVersion = "1.5.1-cats"
val endpointsVersion = "0.9.0"
val circeVersion = "0.11.1"
scapegoatVersion in ThisBuild := "1.3.8"
parallelExecution in Test := false
scapegoatIgnoredFiles := Seq(".*/tech/cryptonomic/conseil/tezos/Tables.scala")
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe" % "config" % "1.3.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2",
"com.typesafe.akka" %% "akka-actor" % akkaVersion exclude ("com.typesafe", "config"),
"com.typesafe.akka" %% "akka-stream" % akkaVersion exclude ("com.typesafe", "config"),
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion exclude ("com.typesafe", "config"),
"com.typesafe.akka" %% "akka-http-caching" % akkaHttpVersion exclude ("com.typesafe", "config"),
"de.heikoseeberger" %% "akka-http-circe" % akkaHttpJsonVersion exclude ("com.typesafe.akka", "akka-http"),
"de.heikoseeberger" %% "akka-http-jackson" % akkaHttpJsonVersion exclude ("com.fasterxml.jackson.core", "jackson-databind") exclude ("com.typesafe.akka", "akka-http"),
"ch.megard" %% "akka-http-cors" % "0.3.4" exclude ("com.typesafe.akka", "akka-http"),
"org.scalaj" %% "scalaj-http" % "2.4.1",
"com.github.pureconfig" %% "pureconfig" % "0.10.2",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.6" exclude ("com.fasterxml.jackson.core", "jackson-annotations"),
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.9.6",
"com.chuusai" %% "shapeless" % "2.3.3",
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "mouse" % "0.20",
"com.github.julien-truffaut" %% "monocle-core" % monocleVersion exclude ("org.typelevel.cats", "cats-core"),
"com.github.julien-truffaut" %% "monocle-macro" % monocleVersion exclude ("org.typelevel.cats", "cats-core") exclude ("org.typelevel.cats", "cats-macros"),
"org.julienrf" %% "endpoints-algebra" % endpointsVersion,
"org.julienrf" %% "endpoints-openapi" % endpointsVersion,
"org.julienrf" %% "endpoints-json-schema-generic" % endpointsVersion,
"org.julienrf" %% "endpoints-json-schema-circe" % endpointsVersion,
"org.julienrf" %% "endpoints-akka-http-server" % endpointsVersion,
"org.postgresql" % "postgresql" % "42.1.4",
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-generic-extras" % circeVersion,
"com.typesafe.slick" %% "slick" % slickVersion exclude ("org.reactivestreams", "reactive-streams") exclude ("com.typesafe", "config") exclude ("org.slf4j", "slf4j-api"),
"com.typesafe.slick" %% "slick-hikaricp" % slickVersion exclude ("org.slf4j", "slf4j-api"),
"com.typesafe.slick" %% "slick-codegen" % slickVersion,
"com.kubukoz" %% "slick-effect" % "0.1.0" exclude ("com.typesafe.slick", "slick"),
"org.postgresql" % "postgresql" % "42.1.4",
"com.github.scopt" %% "scopt" % "4.0.0-RC2",
"io.scalaland" %% "chimney" % "0.3.1",
"com.madgag.spongycastle" % "core" % "1.58.0.0",
"org.scorexfoundation" %% "scrypto" % "2.0.0",
"com.muquit.libsodiumjna" % "libsodium-jna" % "1.0.4" exclude ("org.slf4j", "slf4j-log4j12") exclude ("org.slf4j", "slf4j-api"),
"com.github.alanverbner" %% "bip39" % "0.1",
"com.rklaehn" %% "radixtree" % "0.5.1",
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test exclude ("com.typesafe", "config"),
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test exclude ("com.typesafe", "config"),
"org.scalatest" %% "scalatest" % "3.0.5" % Test,
"com.stephenn" %% "scalatest-json-jsonassert" % "0.0.3" % Test,
"org.scalamock" %% "scalamock" % "4.1.0" % Test,
"ru.yandex.qatools.embed" % "postgresql-embedded" % "2.10" % Test
)
excludeDependencies ++= Seq(
"org.consensusresearch" %% "scrypto"
)
assemblyOutputPath in assembly := file("/tmp/conseil.jar")
scalacOptions ++= ScalacOptions.common
import complete.DefaultParsers._
lazy val runConseil = inputKey[Unit]("A conseil run task.")
fork in runConseil := true
javaOptions in runConseil ++= Seq("-Xms1024M", "-Xmx8192M", "-Xss1M", "-XX:+CMSClassUnloadingEnabled")
runConseil := Def.inputTaskDyn {
val args = spaceDelimited("").parsed
runInputTask(Runtime, "tech.cryptonomic.conseil.Conseil", args: _*).toTask("")
}.evaluated
lazy val runLorre = inputKey[Unit]("A lorre run task.")
fork in runLorre := true
javaOptions ++= Seq("-Xmx512M", "-Xss1M", "-XX:+CMSClassUnloadingEnabled")
runLorre := Def.inputTaskDyn {
val args = spaceDelimited("").parsed
runInputTask(Runtime, "tech.cryptonomic.conseil.Lorre", args: _*).toTask("")
}.evaluated
lazy val genSchema = taskKey[Unit]("A schema generating task.")
fullRunTask(genSchema, Runtime, "tech.cryptonomic.conseil.scripts.GenSchema")