forked from rchain/rsong-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
74 lines (62 loc) · 2.55 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
import CompilerSettings._
import TodoListPlugin._
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots"))
val gitCommitString = SettingKey[String]("gitCommit")
gitCommitString := git.gitHeadCommit.value.getOrElse("Not Set")
lazy val root = (project in file("."))
. settings(
buildInfoKeys := Seq[BuildInfoKey](version, gitCommitString),
buildInfoPackage := "buildInfo",
buildInfoOptions += BuildInfoOption.ToMap,
buildInfoOptions += BuildInfoOption.ToJson
).settings(
organization := "coop.rchain",
name := "rsong-proxy",
scalaVersion := "2.12.6",
libraryDependencies ++= {
object V {
val http4s = "0.19+"
val specs2 = "4.2.0"
val logback = "1.2.3"
val scalalogging = "3.9.0"
val config = "1.3.3"
val scalapb= "0.7.4"
val circie="0.9.3"
val catsEffect="1.0.0"
val monix="3.0.0-RC2-d0feeba"
val redisCache="0.24.3"
val kamon = "0.6.6"
}
Seq(
"io.monix" %% "monix" % V.monix,
"org.typelevel" %% "cats-effect" % V.catsEffect,
"org.typelevel" %% "cats-core" % "1.4.0",
"com.github.cb372" %% "scalacache-redis" % V.redisCache,
"org.http4s" %% "http4s-dsl" % V.http4s,
"org.http4s" %% "http4s-blaze-server" % V.http4s,
"org.http4s" %% "http4s-circe" % V.http4s,
"io.circe" %% "circe-core" % V.circie,
"io.circe" %% "circe-generic" % V.circie,
"io.circe" %% "circe-parser" % V.circie,
"org.specs2" %% "specs2-core" % V.specs2 % "test",
"com.typesafe" % "config" % V.config,
"com.typesafe.scala-logging" %% "scala-logging" % V.scalalogging,
"com.thesamet.scalapb" %% "compilerplugin" % V.scalapb,
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"io.grpc" % "grpc-netty" % scalapb.compiler.Version.grpcJavaVersion,
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion,
"ch.qos.logback" % "logback-classic" % V.logback,
"io.kamon" %% "kamon-prometheus" % "1.0.0"
)})
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value)
// scalacOptions := CompilerSettings.options
enablePlugins(JavaServerAppPackaging, BuildInfoPlugin)
enablePlugins(GitVersioning)
compileWithTodolistSettings
dockerRepository := Some("kayvank")
dockerUpdateLatest := true
version in Docker := version.value + "-" + scala.sys.env.getOrElse(
"CIRCLE_BUILD_NUM", default = "local")