-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
70 lines (65 loc) · 1.86 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
val Pine = "0.1.5"
val Circe = "0.11.1"
val FlexMark = "0.50.32"
val FastParse = "1.0.1"
val ScalaTest = "3.0.8"
val SourceCode = "0.1.7"
name := "leaf"
lazy val commonSettings = Seq(
organization := "tech.sparse",
scalaVersion := "2.12.4-bin-typelevel-4",
scalaOrganization := "org.typelevel",
scalacOptions += "-Yliteral-types",
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % Circe,
"io.circe" %% "circe-generic" % Circe,
"io.circe" %% "circe-parser" % Circe
),
pomExtra :=
<url>https://github.com/sparsetech/leaf</url>
<licenses>
<license>
<name>Apache-2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<scm>
<url>[email protected]:sparsetech/leaf.git</url>
</scm>
<developers>
<developer>
<id>tindzk</id>
<name>Tim Nieradzik</name>
<url>http://github.com/tindzk</url>
</developer>
</developers>
)
lazy val root = project
.in(file("."))
.aggregate(core, notebook)
.settings(
commonSettings,
skip in publish := true
)
lazy val core = project
.in(file("core"))
.dependsOn(notebook)
.settings(
commonSettings,
name := "leaf-core",
libraryDependencies ++= Seq(
"tech.sparse" %% "pine" % Pine,
"org.scalameta" %% "fastparse" % FastParse,
"com.vladsch.flexmark" % "flexmark" % FlexMark,
"com.vladsch.flexmark" % "flexmark-ext-tables" % FlexMark,
"com.vladsch.flexmark" % "flexmark-ext-footnotes" % FlexMark,
"org.scalatest" %% "scalatest" % ScalaTest % "test"
)
)
lazy val notebook = project
.in(file("notebook"))
.settings(
name := "leaf-notebook",
commonSettings,
libraryDependencies += "com.lihaoyi" %% "sourcecode" % SourceCode
)