forked from outr/scarango
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
60 lines (54 loc) · 1.83 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
import sbt.Keys.libraryDependencies
name := "scarango"
organization in ThisBuild := "com.outr"
version in ThisBuild := "0.5.2-SNAPSHOT"
scalaVersion in ThisBuild := "2.12.2"
crossScalaVersions in ThisBuild := List("2.12.2", "2.11.11")
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
resolvers in ThisBuild += Resolver.sonatypeRepo("releases")
resolvers in ThisBuild += Resolver.sonatypeRepo("snapshots")
val circeVersion = "0.8.0"
val reactifyVersion = "1.5.3"
val scalacticVersion = "3.0.3"
val scalaTestVersion = "3.0.3"
val scribeVersion = "1.4.2"
val youIVersion = "0.3.3"
val diffsonVersion = "2.2.0"
val typeSafeConfigVersion = "1.3.1"
lazy val root = project.in(file("."))
.aggregate(
coreJS, coreJVM, driver
)
.settings(
publish := {},
publishLocal := {}
)
lazy val core = crossProject.in(file("core"))
.settings(
name := "scarango-core",
description := "Core objects shared without driver-specific dependencies.",
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value
)
lazy val coreJS = core.js
lazy val coreJVM = core.jvm
lazy val driver = project.in(file("driver"))
.settings(
name := "scarango-driver",
fork := true,
parallelExecution in Test := false,
libraryDependencies ++= Seq(
"com.outr" %% "scribe" % scribeVersion,
"com.outr" %% "reactify" % reactifyVersion,
"io.youi" %% "youi-client" % youIVersion,
"com.typesafe" % "config" % typeSafeConfigVersion,
"org.gnieh" %% "diffson-circe" % diffsonVersion,
"org.scalactic" %% "scalactic" % scalacticVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "test"
),
libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion)
)
.dependsOn(coreJVM)