-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
33 lines (27 loc) · 953 Bytes
/
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
import Dependencies._
name := "scala-community-cn"
lazy val commonSettings = Seq(
scalaVersion := "2.12.10",
version := "0.1"
)
def subProject(name: String): Project =
Project(name, file(s"modules/$name"))
.settings(commonSettings: _*)
lazy val CommunityUI = subProject("community-ui")
.enablePlugins(ScalaJSPlugin)
.enablePlugins(ScalaJSBundlerPlugin)
lazy val CommunityService = subProject("community-service")
.enablePlugins(PlayScala)
lazy val ScalaCommunityCN = project
.in(file("."))
.enablePlugins(PlayScala, WebScalaJSBundlerPlugin)
.settings(commonSettings: _*)
.dependsOn(CommunityUI, CommunityService)
.aggregate(CommunityUI, CommunityService)
.settings(
scalaJSProjects := Seq(CommunityUI),
pipelineStages in Assets := Seq(scalaJSPipeline),
pipelineStages := Seq(digest, gzip),
ivyLoggingLevel := UpdateLogging.Quiet,
libraryDependencies ++= macwire
)