-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
47 lines (42 loc) · 1.71 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
name := "reverse-geocoder"
scalaVersion := "2.12.7"
enablePlugins(JavaAppPackaging)
resolvers += Resolver.bintrayRepo("beyondthelines", "maven")
resolvers += Resolver.bintrayRepo("vyshane", "maven")
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-java8-compat" % "0.9.0",
// Configuration
"com.github.pureconfig" %% "pureconfig" % "0.9.2",
// Dependency Injection
"org.wvlet.airframe" %% "airframe" % "0.70",
// Effects
"io.monix" %% "monix" % "2.3.3",
"io.monix" %% "monix-nio" % "0.0.3",
// gRPC and Protocol Buffers
"io.grpc" % "grpc-netty-shaded" % "1.15.1",
"io.grpc" % "grpc-stub" % "1.15.1",
"io.grpc" % "grpc-netty" % scalapb.compiler.Version.grpcJavaVersion,
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion,
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"beyondthelines" %% "grpcmonixruntime" % "0.0.7",
// Monitoring
"mu.node" %% "healthttpd" % "0.1.0",
// K-d Tree
"com.thesamet" %% "kdtree" % "1.0.5",
// Sunrise and sunset calculations
"net.time4j" % "time4j-base" % "5.0",
// Logging
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
// Testing
"org.scalatest" %% "scalatest" % "3.0.5" % Test,
"org.scalamock" %% "scalamock" % "4.1.0" % Test,
"com.github.javafaker" % "javafaker" % "0.16" % Test
)
// Protobuf/gRPC code generation
PB.targets in Compile := Seq(
scalapb.gen(grpc = true, flatPackage = true) -> (sourceManaged in Compile).value,
grpcmonix.generators.GrpcMonixGenerator(flatPackage = true) -> (sourceManaged in Compile).value
)
// Code formatting
scalafmtConfig := file(".scalafmt.conf")