-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.sbt
91 lines (81 loc) · 2.63 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
lazy val commonSettings = Seq(
// don't define "name" here, because it will cause
// circular dependencies with sub-projects
organization := "in.co.uproot",
version := "0.8.0",
scalaVersion := "3.5.2",
scalacOptions := List("-deprecation"),
// wartremoverWarnings ++= Warts.allBut(Wart.ToString, Wart.Throw),
/*
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
*/
)
lazy val abandon = (project in file(".")).
aggregate(betterFilesCore, dirsuite, base, cli).
dependsOn(base, cli).
settings(commonSettings: _*).
settings(
name := "abandon",
run /fork := true,
nativeImageOptions ++= List("--initialize-at-build-time", "--no-fallback", "-O2", "-H:IncludeResources=\".*/frontend/build.zip$\""),
nativeImageJvm := "graalvm-java21",
nativeImageVersion := "21.0.2"
)
.enablePlugins(NativeImagePlugin)
lazy val betterFilesCore = (project in file("better-files-core")).
settings(commonSettings: _*).
settings(
name := "better-files",
)
lazy val dirsuite = (project in file("dirsuite")).
dependsOn(betterFilesCore).
settings(commonSettings: _*).
settings(
name := "dirsuite",
libraryDependencies += Dependencies.scalatest
)
lazy val base = (project in file("base")).
enablePlugins(BuildInfoPlugin).
dependsOn(dirsuite).
settings(commonSettings: _*).
settings(
name := "abandon-base",
run / fork := true,
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoOptions += BuildInfoOption.BuildTime,
buildInfoPackage := "co.uproot.abandon",
buildInfoObject := "BaseBuildInfo"
)
lazy val cli = (project in file("cli")).
enablePlugins(BuildInfoPlugin).
dependsOn(base).
settings(commonSettings: _*).
settings(
name := "abandon-cli",
run / fork := true,
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoOptions += BuildInfoOption.BuildTime,
buildInfoPackage := "co.uproot.abandon",
buildInfoObject := "CliBuildInfo"
)
lazy val gui = (project in file("gui")).
enablePlugins(BuildInfoPlugin).
dependsOn(base).
settings(commonSettings: _*).
settings(
name := "abandon-gui",
run / fork := true,
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoOptions += BuildInfoOption.BuildTime,
buildInfoPackage := "co.uproot.abandon",
buildInfoObject := "GuiBuildInfo"
)
concurrentRestrictions in Global := Seq(
Tags.limit(Tags.Test, 1)
)