microsoft / build-server-for-gradle

An implementation of the Build Server Protocol for Gradle
MIT License
51 stars 8 forks source link

Provide an easy way to create BSP Connection Details #115

Open fthomas opened 9 months ago

fthomas commented 9 months ago

I'd like to experiment with this project in combination with Scala Steward to extract dependencies from Gradle builds (https://github.com/scala-steward-org/scala-steward/issues/2640). Other BSP server implementations provide a way to create BSP Connection Details so that BSP clients can launch the server easily. For example, connection details for bazel-bsp can be created with Coursier in a single command: cs launch org.jetbrains.bsp:bazel-bsp:<version> -M org.jetbrains.bsp.bazel.install.Install. For using BSP in Scala Steward I've collected how different build servers create connection details here. It would be nice if the Build Server for Gradle would also have a simple command to create connection details so that I can experiment with it in Scala Steward.

fthomas commented 9 months ago

Btw, I just found https://github.com/scalameta/metals-feature-requests/issues/364 by @tgodzik which contains hand-crafted connection details for the Gradle build server. I guess providing an easy way to create connection details would also simplify (or is a prerequisite for) adding support for the Gradle build server to Metals.

tgodzik commented 9 months ago

Thanks for letting me know @fthomas ! This would indeed be very useful if there are plans on working further on the Gradle build server. From our side, we don't currently plan to contribute anything upstream, but if at any point the feature becomes more crucial for us, we will try to help out.