-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
30 lines (25 loc) · 1.12 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
ThisBuild / scalaVersion := "3.3.1"
val scalaJs211Version = "0.6.33"
val scalaJs331Version = "1.12.0"
organization := "com.virtuslab.scala3.scalajs.compiler.servlet"
name := "scala-js-compiler"
version := "2.0.0-SNAPSHOT"
javacOptions ++= Seq("-source", "21", "-target", "21")
lazy val scala_js_compiler_servlet = project
.in(file("."))
.settings(
libraryDependencies += "javax.servlet" % "javax.servlet-api" % "3.1.0",
libraryDependencies ++= {
if (scalaVersion.value == "3.3.1") Seq(
"org.scala-js" % "scalajs-linker_2.13" % scalaJs331Version,
"org.scala-lang" %% "scala3-compiler" % scalaVersion.value,
"org.ow2.asm" % "asm" % "9.6",
"org.scalatest" %% "scalatest" % "3.2.11" % Test
) else if (scalaVersion.value == "2.11.12") Seq(
"org.scala-lang" % "scala-library" % scalaVersion.value,
"org.scala-js" % "scalajs-compiler_2.11.12" % scalaJs211Version,
"org.scala-js" % "scalajs-library_2.11" % scalaJs211Version,
"org.scala-js" % "scalajs-tools_2.11" % scalaJs211Version
) else throw new Exception("Unsupported scala version")
}
)