forked from polynote/polynote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (65 loc) · 2.6 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
name := "polynote"
val commonSettings = Seq(
version := "0.1.0-SNAPSHOT",
scalaVersion := "2.11.11",
scalacOptions ++= Seq(
"-Ypartial-unification",
"-language:higherKinds",
"-unchecked"
),
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "CHANGES") => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
},
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.7")
)
val `polynote-runtime` = project.settings(
commonSettings
)
val `polynote-kernel` = project.settings(
commonSettings,
scalaVersion := "2.11.11",
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "test",
"org.typelevel" %% "cats-effect" % "1.0.0",
"co.fs2" %% "fs2-io" % "1.0.0-M5",
"org.log4s" %% "log4s" % "1.6.1",
"org.scodec" %% "scodec-core" % "1.10.3",
"io.circe" %% "circe-yaml" % "0.9.0",
"io.circe" %% "circe-generic" % "0.10.0",
"io.get-coursier" %% "coursier" % "1.1.0-M9",
"io.get-coursier" %% "coursier-cache" % "1.1.0-M9",
"black.ninia" % "jep" % "3.8.2"
)
).dependsOn(`polynote-runtime`)
val `polynote-server` = project.settings(
commonSettings,
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
"org.http4s" %% "http4s-core" % "0.19.0-M2",
"org.http4s" %% "http4s-dsl" % "0.19.0-M2",
"org.http4s" %% "http4s-blaze-server" % "0.19.0-M2",
"org.scodec" %% "scodec-core" % "1.10.3",
"io.circe" %% "circe-generic-extras" % "0.10.0",
"io.circe" %% "circe-parser" % "0.10.0",
"com.vladsch.flexmark" % "flexmark" % "0.34.32",
"com.vladsch.flexmark" % "flexmark-ext-yaml-front-matter" % "0.34.32",
"org.slf4j" % "slf4j-simple" % "1.7.25"
),
unmanagedResourceDirectories in Compile += (ThisBuild / baseDirectory).value / "polynote-frontend" / "dist"
) dependsOn `polynote-kernel`
val `polynote-spark` = project.settings(
commonSettings,
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
"org.apache.spark" %% "spark-sql" % "2.1.1" % "provided",
"org.apache.spark" %% "spark-repl" % "2.1.1" % "provided",
"org.apache.spark" %% "spark-sql" % "2.1.1" % "test",
"org.apache.spark" %% "spark-repl" % "2.1.1" % "test",
),
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
) dependsOn `polynote-server`
val polynote = project.in(file(".")).aggregate(`polynote-kernel`, `polynote-server`)