-
Notifications
You must be signed in to change notification settings - Fork 56
/
build.sbt
61 lines (58 loc) · 1.92 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
import sbt.Keys._
val defaultSettings = Seq(
scalacOptions ++= Seq("-feature", "-deprecation"),
unmanagedSourceDirectories in Compile += baseDirectory.value / "shared" / "main" / "scala",
unmanagedSourceDirectories in Test += baseDirectory.value / "shared" / "test" / "scala"
)
lazy val root = project.in(file(".")).settings(defaultSettings:_*).settings(
name := "workbench",
version := "0.4.1",
organization := "com.lihaoyi",
scalaVersion := "2.12.4",
sbtPlugin := true,
publishArtifact in Test := false,
publishTo := Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"),
pomExtra :=
<url>https://github.com/lihaoyi/workbench</url>
<licenses>
<license>
<name>MIT license</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<url>git://github.com/lihaoyi/workbench.git</url>
<connection>scm:git://github.com/lihaoyi/workbench.git</connection>
</scm>
<developers>
<developer>
<id>lihaoyi</id>
<name>Li Haoyi</name>
<url>https://github.com/lihaoyi</url>
</developer>
</developers>
,
(resources in Compile) += {
(fullOptJS in (client, Compile)).value
(artifactPath in (client, Compile, fullOptJS)).value
},
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.21"),
libraryDependencies ++= Seq(
Dependencies.akkaHttp,
Dependencies.akka,
Dependencies.autowire.value,
Dependencies.upickle.value
)
)
lazy val client = project.in(file("client"))
.enablePlugins(ScalaJSPlugin)
.settings(defaultSettings: _*)
.settings(
unmanagedSourceDirectories in Compile += baseDirectory.value / ".." / "shared" / "main" / "scala",
libraryDependencies ++= Seq(
Dependencies.autowire.value,
Dependencies.dom.value,
Dependencies.upickle.value
),
emitSourceMaps := false
)