-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
53 lines (48 loc) · 1.59 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
val kantanVer = "0.6.0"
val circeVer = "0.12.3"
ThisBuild / organization := "org.indyscala.dataser"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.1"
ThisBuild / homepage := Some(url("https://github.com/indyscala/data-serialization"))
ThisBuild / licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT"))
lazy val data = project
.settings(
libraryDependencies ++= Seq(
"com.nrinaudo" %% "kantan.csv" % kantanVer
, "com.nrinaudo" %% "kantan.csv-generic" % kantanVer
, "com.nrinaudo" %% "kantan.csv-java8" % kantanVer
, "io.circe" %% "circe-parser" % circeVer
// geodesy dependency for https://en.wikipedia.org/wiki/Vincenty%27s_formulae
// to calculate distance between lat/lon pair
, "org.gavaghan" % "geodesy" % "1.1.3"
)
)
lazy val circe = project
.dependsOn(data)
.settings(
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % circeVer
, "io.circe" %% "circe-generic" % circeVer
, "io.circe" %% "circe-parser" % circeVer
)
)
lazy val scala_pb = (project in file("scalapb"))
.dependsOn(data)
.settings(
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
),
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % circeVer
, "io.circe" %% "circe-generic" % circeVer
, "io.circe" %% "circe-parser" % circeVer
)
)
lazy val xtract = project
.dependsOn(data)
.settings(
libraryDependencies ++= Seq(
"com.lucidchart" %% "xtract" % "2.2.1"
, "org.scala-lang.modules" %% "scala-xml" % "1.2.0"
)
)