-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
73 lines (64 loc) · 2.23 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
val scalaV = "3.3.3"
val logbackClassicV = "1.5.3"
val catsV = "2.10.0"
val catsEffectV = "3.5.4"
val declineV = "2.4.1"
val fs2V = "3.10.2"
val circeV = "0.14.6"
val breezeV = "2.1.0"
// Projects
lazy val skepticron = project.in(file("."))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(NativeImagePlugin)
.enablePlugins(JavaAppPackaging)
.settings(commonSettings)
.settings(
name := "skepticron",
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "org.skepticron",
maintainer := "joe.tarricone@banno.com",
scalacOptions -= "-Xfatal-warnings",
Compile / mainClass := Some("org.skepticron.Main"),
nativeImageOptions := {
Seq(
"--no-fallback",
"--initialize-at-build-time=scala",
"--enable-http",
"--enable-https",
"--report-unsupported-elements-at-runtime",
) ++
sys.env
.get("NATIVE_IMAGE_STATIC")
.map(_.toBoolean)
.filter(identity)
.map(_ => "--static")
.toSeq ++
sys.env
.get("NATIVE_IMAGE_MUSL")
.map(path => s"-H:UseMuslC=$path")
.toSeq
},
nativeImageInstalled := true
)
// General Settings
lazy val commonSettings = Seq(
scalaVersion := scalaV,
crossScalaVersions := Seq(scalaVersion.value),
libraryDependencies ++= Seq(
"com.monovore" %% "decline-effect" % declineV,
"org.typelevel" %% "cats-core" % catsV,
"org.typelevel" %% "cats-effect" % catsEffectV,
"co.fs2" %% "fs2-core" % fs2V,
"co.fs2" %% "fs2-io" % fs2V,
"ch.qos.logback" % "logback-classic" % logbackClassicV,
"io.circe" %% "circe-core" % circeV,
"io.circe" %% "circe-generic" % circeV,
"io.circe" %% "circe-parser" % circeV,
"org.scalanlp" %% "breeze" % breezeV
)
)
// General Settings
inThisBuild(List(
organization := "org",
homepage := Some(url("https://github.com/jtarricone/skepticron")),
))