-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
48 lines (45 loc) · 1.74 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
val scala3Version = "3.3.1"
enablePlugins(GraalVMNativeImagePlugin)
enablePlugins(BuildInfoPlugin)
// <--- Updated automatically by release job
val bsp4BazelVersion = "0.0.30"
// --->
lazy val root = project
.in(file("."))
.settings(
name := "bsp4bazel",
organization := "bazeltools",
version := bsp4BazelVersion,
scalaVersion := scala3Version,
libraryDependencies += "org.typelevel" %% "cats-effect" % "3.5.2",
libraryDependencies += "co.fs2" %% "fs2-core" % "3.9.3",
libraryDependencies += "co.fs2" %% "fs2-io" % "3.9.3",
libraryDependencies += "io.circe" %% "circe-core" % "0.14.6",
libraryDependencies += "io.circe" %% "circe-generic" % "0.14.6",
libraryDependencies += "io.circe" %% "circe-parser" % "0.14.6",
libraryDependencies += "org.typelevel" %% "cats-parse" % "1.0.0",
libraryDependencies += "com.monovore" %% "decline" % "2.4.1",
libraryDependencies += "com.monovore" %% "decline-effect" % "2.4.1",
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test,
libraryDependencies += "org.scalameta" %% "munit-scalacheck" % "0.7.29" % Test,
libraryDependencies += "org.typelevel" %% "munit-cats-effect-3" % "1.0.7" % Test,
maintainer := "Aish Fenton",
scalacOptions ++= Seq(
"-explain"
),
graalVMNativeImageOptions ++= Seq(
"--initialize-at-build-time",
"--no-fallback" // Bakes-in run-time reflection (alternately: --auto-fallback, --force-fallback)
),
Compile / PB.targets := Seq(
scalapb.gen() -> (Compile / sourceManaged).value / "scalapb"
),
buildInfoKeys := Seq[BuildInfoKey](
name,
version,
scalaVersion,
sbtVersion,
"bspVersion" -> "2.0.0-M2"
),
buildInfoPackage := "bazeltools.bsp4bazel"
)