-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
48 lines (35 loc) · 1.55 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
import sbtcrossproject.CrossPlugin.autoImport.{CrossType, crossProject}
ThisBuild / githubOwner := "OpenGrabeso"
ThisBuild / githubRepository := "packages"
ThisBuild / githubActor := sys.env.getOrElse("GITHUB_USERNAME", "OpenGrabeso")
ThisBuild / githubTokenSource := TokenSource.GitConfig("github.token") || TokenSource.Environment("GITHUB_USERTOKEN") || TokenSource.Environment("GITHUB_TOKEN")
publish / skip := true
publishLocal / skip := true
lazy val projs = crossProject(JSPlatform, JVMPlatform).crossType(CrossType.Full).in(file("."))
.settings(
name := "esprimascala",
version := "0.2.20",
organization := "com.github.opengrabeso",
scalaVersion := "2.13.14",
scalacOptions := Seq("-unchecked", "-deprecation", "-feature"),
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.18" % "test",
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value, // needed for macros
publishMavenStyle := true,
Compile / packageDoc / publishArtifact := false,
publish := (publish dependsOn (Test / test)).value,
)
lazy val interactive = project.dependsOn(projs.jvm)
.settings(
scalaVersion := "2.13.14",
libraryDependencies += "org.scala-lang.modules" %% "scala-swing" % "3.0.0",
libraryDependencies += "com.fifesoft" % "rsyntaxtextarea" % "3.3.4",
publish / skip := true,
publishLocal / skip := true
)
lazy val root = project.in(file("root")).
aggregate(projs.jvm, projs.js).
settings(
name := "esprima-scala",
publish / skip := true,
publishLocal / skip := true
)