-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
108 lines (101 loc) · 3.15 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
enablePlugins(GraalVMNativeImagePlugin)
ThisBuild / scalaVersion := "3.3.1"
ThisBuild / organization := "io.github.valdemargr"
ThisBuild / tlBaseVersion := "0.2"
ThisBuild / tlUntaggedAreSnapshots := false
ThisBuild / tlSonatypeUseLegacyHost := true
ThisBuild / tlFatalWarnings := false
ThisBuild / licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
)
ThisBuild / developers := List(
Developer(
"valdemargr",
"Valdemar Grange",
url("https://github.com/valdemargr")
)
)
ThisBuild / headerLicense := Some(
HeaderLicense.Custom("Copyright (c) 2023 Valdemar Grange")
)
ThisBuild / headerEmptyLine := false
lazy val sharedSettings = Seq(
organization := "io.github.valdemargr",
organizationName := "Valdemar Grange",
autoCompilerPlugins := true,
tlCiMimaBinaryIssueCheck := false,
tlMimaPreviousVersions := Set.empty,
mimaReportSignatureProblems := false,
mimaFailOnProblem := false,
mimaPreviousArtifacts := Set.empty,
scalacOptions ++= {
if (scalaVersion.value.startsWith("2")) {
Seq(
"-Wunused:-nowarn",
"-Wconf:cat=unused-nowarn:s",
"-Ywarn-unused:-nowarn"
)
} else Seq.empty // Seq("-no-indent")
},
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.5.2",
"org.typelevel" %% "cats-core" % "2.9.0",
"org.typelevel" %% "cats-parse" % "0.3.8",
"org.typelevel" %% "vault" % "3.5.0",
"io.circe" %% "circe-core" % "0.14.6",
"io.circe" %% "circe-parser" % "0.14.6",
"io.circe" %% "circe-generic" % "0.14.6",
"co.fs2" %% "fs2-core" % "3.9.3",
"co.fs2" %% "fs2-io" % "3.9.3",
"org.tpolecat" %% "sourcepos" % "1.1.0",
"io.github.valdemargr" %% "catch-effect" % "0.0.1",
"org.typelevel" %% "kittens" % "3.1.0",
"org.scalameta" %% "munit" % "1.0.0-M10" % Test,
"org.typelevel" %% "munit-cats-effect" % "2.0.0-M3" % Test,
"com.zaxxer" % "nuprocess" % "2.0.6"
)
)
lazy val protos = project
.in(file("protos"))
.settings(sharedSettings)
.settings(
name := "mezel-protos",
Compile / PB.targets := Seq(
scalapb.gen(scala3Sources = true) -> (Compile / sourceManaged).value / "scalapb"
),
libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"
)
)
.disablePlugins(TypelevelSettingsPlugin)
lazy val root = project
.in(file("."))
.settings(sharedSettings)
.settings(
name := "mezel",
libraryDependencies ++= Seq(
"com.monovore" %% "decline" % "2.4.1",
"com.monovore" %% "decline-effect" % "2.4.1"
),
fork := true,
graalVMNativeImageOptions ++= Seq(
"--initialize-at-build-time",
"--no-fallback"
),
assembly / mainClass := Some("mezel.Main"),
assembly / assemblyOutputPath := file("target/mezel.jar")
)
.dependsOn(protos)
lazy val filesystemIO = project
.in(file("filesystem-io"))
.settings(sharedSettings)
.settings(
name := "mezel-filesystem-io",
fork := true,
graalVMNativeImageOptions ++= Seq(
"--initialize-at-build-time",
"--no-fallback"
)
)
.enablePlugins(GraalVMNativeImagePlugin)