-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
43 lines (37 loc) · 1.06 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
import sbtcrossproject.CrossProject
enablePlugins(ScalaJSPlugin)
lazy val replDependencies = Seq(
"jline" % "jline" % "2.14.6",
"org.rogach" %% "scallop" % "4.1.0",
)
lazy val lspDependencies = Seq(
"org.eclipse.lsp4j" % "org.eclipse.lsp4j" % "0.23.1",
"com.google.code.gson" % "gson" % "2.11.0"
)
lazy val testingDependencies = Seq(
"org.scala-sbt" %% "io" % "1.6.0" % Test,
"org.scalameta" %% "munit" % "0.7.29" % Test
)
lazy val kiama: CrossProject = crossProject(JSPlatform, JVMPlatform).in(file("."))
.settings(Seq(
scalaVersion := "3.3.1",
scalacOptions ++= Seq(
"-encoding", "utf8",
"-deprecation",
"-unchecked",
"-Xfatal-warnings",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions"
),
publish := {},
publishLocal := {}
))
.settings(
name := "kiama"
)
.jvmSettings(
libraryDependencies ++= (replDependencies ++ lspDependencies ++ testingDependencies),
Test / testOptions += Tests.Argument(TestFrameworks.MUnit, "-oD"),
)