-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
65 lines (54 loc) · 1.3 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
62
63
64
65
name := "kaminari"
ThisBuild / scalaVersion := "3.0.0"
// PROJECTS
lazy val global = project
.in(file("."))
.settings(settings)
.disablePlugins(AssemblyPlugin)
.aggregate(
ifscCli,
notionPurge
)
lazy val ifscCli = Project(id = "ifsc-cli", base = file("ifsc-cli"))
.settings(
name := "ifsc-cli",
settings,
assemblySettings,
libraryDependencies ++= Seq(
dependencies.requests,
dependencies.upickle
)
)
.enablePlugins(PackPlugin)
lazy val notionPurge = Project(id = "notion-purge", base = file("notion-purge"))
.settings(
name := "notion-purge",
settings,
assemblySettings,
libraryDependencies ++= Seq(
dependencies.requests,
dependencies.upickle
)
)
.enablePlugins(PackPlugin)
// DEPENDENCIES
lazy val dependencies =
new {
val requests = "com.lihaoyi" %% "requests" % "0.6.9"
val upickle = "com.lihaoyi" %% "upickle" % "1.3.15"
}
// SETTINGS
lazy val assemblySettings = Seq(
assembly / assemblyJarName := name.value + ".jar",
assembly / assemblyOutputPath := file("target/jars/" + name.value + ".jar")
)
lazy val compilerOptions = Seq(
"-encoding",
"utf8"
)
lazy val commonSettings = Seq(
scalacOptions ++= compilerOptions,
packMain := Map(name.value -> "main")
)
lazy val settings =
commonSettings