-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
62 lines (56 loc) · 1.7 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
val Leaf = "0.1.0"
val Scala2_11 = "2.11.12"
val Scala2_12 = "2.12.13"
val Scala2_13 = "2.13.4"
val ScalaTest = "3.2.4-M1"
val SharedSettings = Seq(
name := "trail",
organization := "tech.sparse",
scalaVersion := Scala2_13,
crossScalaVersions := Seq(Scala2_13, Scala2_12, Scala2_11),
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-encoding", "utf8"
),
pomExtra :=
<url>https://github.com/sparsetech/trail</url>
<licenses>
<license>
<name>Apache-2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<scm>
<url>git@github.com:sparsetech/trail.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(trail.js, trail.jvm, trail.native)
.settings(SharedSettings)
.settings(skip in publish := true)
lazy val trail = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(SharedSettings)
.settings(
autoAPIMappings := true,
apiMappings += (scalaInstance.value.libraryJar -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")),
libraryDependencies ++= Seq("freespec", "wordspec", "funspec", "funsuite", "shouldmatchers").map(module =>
"org.scalatest" %%% s"scalatest-$module" % ScalaTest % Test
)
)
lazy val manual = project.in(file("manual"))
.dependsOn(trail.jvm)
.settings(SharedSettings)
.settings(
name := "manual",
publishArtifact := false,
libraryDependencies += "tech.sparse" %% "leaf-notebook" % Leaf
)