-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
60 lines (52 loc) · 1.71 KB
/
build.sbt
File metadata and controls
60 lines (52 loc) · 1.71 KB
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
import org.tmt.sbt.docs.Settings
import org.tmt.sbt.docs.DocKeys.*
import sbt.Test
lazy val githubRepoUrl = "https://github.com/your-username/your-project"
ThisBuild / scalaVersion := "3.6.4"
ThisBuild / organizationName := "TMT Org"
ThisBuild / docsRepo := githubRepoUrl
ThisBuild / docsParentDir := ""
ThisBuild / gitCurrentRepo := githubRepoUrl
version := "0.1.0"
lazy val openSite =
Def.setting {
Command.command("openSite") { state =>
val uri = s"file://${Project.extract(state).get(siteDirectory)}/${docsParentDir.value}/${version.value}/index.html"
state.log.info(s"Opening browser at $uri ...")
java.awt.Desktop.getDesktop.browse(new java.net.URI(uri))
state
}
}
/* ================= Root Project ============== */
lazy val `apsproceduredataservice` = project
.in(file("."))
.enablePlugins(GithubPublishPlugin)
.aggregate(docs)
.settings(
ghpagesBranch := "gh-pages", // DO NOT DELETE
commands += openSite.value,
Settings.makeSiteMappings(docs),
inThisBuild (
List(
scalaVersion := "3.6.4",
version := "0.1.0"
)
),
fork := true,
resolvers += "jitpack" at "https://jitpack.io",
libraryDependencies ++= Seq(
Libs.`esw-http-template-wiring` % "compile->compile;test->test",
Libs.`embedded-keycloak` % Test,
Libs.`scalatest` % Test,
Libs.`pekko-http-testkit` % Test,
Libs.`mockito` % Test,
Libs.`junit4-interface` % Test,
Libs.`testng-6-7` % Test,
Libs.`pekko-actor-testkit-typed` % Test,
Libs.`pekko-stream-testkit` % Test
),
Test / fork := true
)
/* ================= Paradox Docs ============== */
lazy val docs = project
.enablePlugins(ParadoxMaterialSitePlugin)