-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
34 lines (30 loc) · 855 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
34
import com.typesafe.sbt.web.Import.WebKeys
inThisBuild(
List(
scalaVersion := "3.1.0",
scalafmtOnCompile := true,
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
)
lazy val sakeBa = (project in file("sake-ba"))
.settings(
libraryDependencies ++= Seq(
"ba.sake" %% "hepek" % "0.0.0+1-0114d0a3-SNAPSHOT"
),
(hepek in Compile) := {
WebKeys.assets.value
(hepek in Compile).value
},
WebKeys.webModulesLib := "site/lib",
openIndexPage := openIndexPageTask.value
)
.enablePlugins(HepekPlugin, SbtWeb)
// custom handy tasks
val openIndexPage = taskKey[Unit]("Open index.html")
val openIndexPageTask = Def.taskDyn {
Def.task {
java.awt.Desktop.getDesktop
.browse(new File(hepekTarget.value + "/site/index.html").toURI)
}
}