This repository has been archived by the owner on May 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
79 lines (72 loc) · 2.04 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
enablePlugins(GitVersioning)
lazy val commonSettings = Seq(
organization := "io.buildo",
scalaVersion := "2.12.8",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
bintrayOrganization := Some("buildo"),
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-encoding",
"utf8",
"-feature"
)
)
lazy val noPublishSettings = Seq(
publish := (()),
publishLocal := (()),
publishArtifact := false
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(noPublishSettings)
.aggregate(annotations)
.dependsOn(annotations)
lazy val annotations = project
.settings(commonSettings)
.settings(
name := "metarpheus-annotations"
)
lazy val core = crossProject
.settings(
commonSettings,
name := "metarpheus-core",
libraryDependencies ++= Seq(
"org.scalameta" %%% "scalameta" % "4.1.5",
"org.scalameta" %%% "contrib" % "4.1.5",
"org.scalatest" %%% "scalatest" % "3.0.1" % Test,
"ai.x" %% "diff" % "2.0" % Test
)
)
lazy val coreJVM = core.jvm
lazy val coreJS = core.js
lazy val jsFacade = project
.enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin)
.settings(
commonSettings,
name := "metarpheus-js-facade",
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) },
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
libraryDependencies ++= Seq(
"io.circe" %%% "circe-core" % "0.8.0",
"io.circe" %%% "circe-parser" % "0.8.0",
"io.circe" %%% "circe-generic-extras" % "0.8.0"
)
)
.dependsOn(coreJS)
lazy val cli = project
.settings(
commonSettings,
name := "metarpheus-cli",
libraryDependencies ++= Seq(
"org.rogach" %% "scallop" % "1.0.0",
"org.json4s" %% "json4s-jackson" % "3.5.0",
"io.circe" %% "circe-core" % "0.8.0",
"io.circe" %% "circe-generic-extras" % "0.8.0",
"io.circe" %% "circe-parser" % "0.8.0",
"org.scalatest" %% "scalatest" % "3.0.1" % Test
)
)
.dependsOn(coreJVM)