-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
92 lines (78 loc) · 2.8 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
ThisBuild / organization := "org.lamcalcj"
ThisBuild / version := "1.4.0"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / organizationName := "LamcalcJ"
ThisBuild / startYear := Option(2019)
ThisBuild / developers += Developer("yuxuanchiadm", "Yu Xuanchi", "[email protected]", url("https://github.com/yuxuanchiadm"))
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := Option(MavenRepository("lamcalcj-maven", "https://api.bintray.com/maven/yuxuanchiadm/lamcalcj-maven/lamcalcj/;publish=1"))
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
name := "lamcalcj-parent"
autoScalaLibrary := false
artifacts := Seq()
lazy val ast = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("lamcalcj-ast"))
.settings(
name := "lamcalcj-ast",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test
)
lazy val astJS = ast.js
lazy val astJVM = ast.jvm
lazy val utils = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("lamcalcj-utils"))
.dependsOn(ast)
.settings(
name := "lamcalcj-utils",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test
)
lazy val utilsJS = utils.js
lazy val utilsJVM = utils.jvm
lazy val parser = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("lamcalcj-parser"))
.dependsOn(utils)
.settings(
name := "lamcalcj-parser",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test
)
lazy val parserJS = parser.js
lazy val parserJVM = parser.jvm
lazy val compiler = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("lamcalcj-compiler"))
.dependsOn(ast)
.dependsOn(parser)
.settings(
name := "lamcalcj-compiler",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test
)
lazy val compilerJS = compiler.js
lazy val compilerJVM = compiler.jvm
lazy val pretty = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("lamcalcj-pretty-print"))
.dependsOn(ast)
.dependsOn(utils)
.dependsOn(compiler % Test)
.settings(
name := "lamcalcj-pretty-print",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test
)
lazy val prettyJS = pretty.js
lazy val prettyJVM = pretty.jvm
lazy val reducer = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("lamcalcj-reducer"))
.dependsOn(ast)
.dependsOn(utils)
.dependsOn(compiler % Test)
.dependsOn(pretty % Test)
.settings(
name := "lamcalcj-reducer",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test
)
lazy val reducerJS = reducer.js
lazy val reducerJVM = reducer.jvm