-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
43 lines (35 loc) · 1.12 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
import sbt.*
val scala3Version = "3.6.2"
//Compile / PB.targets := Seq(
// scalapb.gen() -> (Compile / sourceManaged).value / "scalapb"
//)
//Compile / PB.protoSources += file("../protobuf")
// change package zip name to app.zip
Universal / packageName := "app"
// skip package doc files
compile / packageDoc / mappings := Seq()
// delete all bin except server
Universal / mappings := {
val universalMappings = (Universal / mappings).value
universalMappings filter { case (_, name) =>
!(name.startsWith("bin/") && name != "bin/app")
}
}
// exclude config files from jar
unmanagedResources / excludeFilter := "*.conf"
lazy val webSugar = RootProject(file("./web-sugar"))
lazy val backend = project
.in(file("."))
.settings(
name := "web-sugar-startup",
version := "0.1.0",
scalaVersion := scala3Version,
libraryDependencies ++= Seq(
"org.postgresql" % "postgresql" % "42.7.4",
"org.casbin" % "jcasbin" % "1.78.0",
"org.scalameta" %% "munit" % "1.0.4" % Test
),
// Compile / mainClass := Some("com.timzaak.app")
)
.enablePlugins(JavaServerAppPackaging)
.dependsOn(webSugar)