File tree Expand file tree Collapse file tree 6 files changed +20
-15
lines changed
main/scala/afenton/bazel/bsp
test/scala/afenton/bazel/bsp Expand file tree Collapse file tree 6 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ val scala3Version = "3.2.1"
2
2
3
3
// enablePlugins(JavaAppPackaging)
4
4
enablePlugins(GraalVMNativeImagePlugin )
5
+ enablePlugins(BuildInfoPlugin )
5
6
6
7
lazy val root = project
7
8
.in(file(" ." ))
8
9
.settings(
9
10
name := " bazel-bsp" ,
10
11
organization := " afenton" ,
11
- version := " 0.0.15 " ,
12
+ version := " 0.0.16 " ,
12
13
scalaVersion := scala3Version,
13
14
libraryDependencies += " org.typelevel" %% " cats-effect" % " 3.4.4" ,
14
15
libraryDependencies += " co.fs2" %% " fs2-core" % " 3.3.0" ,
@@ -32,5 +33,13 @@ lazy val root = project
32
33
),
33
34
Compile / PB .targets := Seq (
34
35
scalapb.gen() -> (Compile / sourceManaged).value / " scalapb"
35
- )
36
+ ),
37
+ buildInfoKeys := Seq [BuildInfoKey ](
38
+ name,
39
+ version,
40
+ scalaVersion,
41
+ sbtVersion,
42
+ " bspVersion" -> " 2.0.0-M2"
43
+ ),
44
+ buildInfoPackage := " afenton.bazel.bsp"
36
45
)
Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.11")
3
3
addSbtPlugin(" com.thesamet" % " sbt-protoc" % " 1.0.3" )
4
4
5
5
libraryDependencies += " com.thesamet.scalapb" %% " compilerplugin" % " 0.11.11"
6
+
7
+ addSbtPlugin(" com.eed3si9n" % " sbt-buildinfo" % " 0.11.0" )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ object BazelBspApp
39
39
extends CommandIOApp (
40
40
name = " bazel-bsp" ,
41
41
header = " Bazel BSP server" ,
42
- version = BuildMetaData . Version
42
+ version = BuildInfo .version
43
43
):
44
44
45
45
val verboseOpt =
@@ -124,8 +124,8 @@ object BazelBspApp
124
124
private lazy val bspConfig : String = s """
125
125
{
126
126
"name": "BazelBsp",
127
- "version": " ${BuildMetaData . Version }",
128
- "bspVersion": " ${BuildMetaData . BspVersion }",
127
+ "version": " ${BuildInfo .version }",
128
+ "bspVersion": " ${BuildInfo .bspVersion }",
129
129
"languages": [
130
130
"scala"
131
131
],
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ class BazelBspServer(
48
48
49
49
InitializeBuildResult (
50
50
" Bazel" ,
51
- BuildMetaData . Version ,
52
- BuildMetaData . BspVersion ,
51
+ BuildInfo .version ,
52
+ BuildInfo .bspVersion ,
53
53
BuildServerCapabilities (
54
54
compileProvider = Some (compileProvider),
55
55
inverseSourcesProvider = Some (true ),
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ class End2EndTest extends munit.CatsEffectSuite with BspHelpers:
55
55
responses.select[InitializeBuildResult ],
56
56
InitializeBuildResult (
57
57
" Bazel" ,
58
- BuildMetaData . Version ,
59
- BuildMetaData . BspVersion ,
58
+ BuildInfo .version ,
59
+ BuildInfo .bspVersion ,
60
60
BuildServerCapabilities (
61
61
compileProvider = Some (CompileProvider (List (" scala" ))),
62
62
inverseSourcesProvider = Some (true ),
You can’t perform that action at this time.
0 commit comments