Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebootstrap on latest master #3420

Merged
merged 14 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/mill-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.12
0.12.0-M0-68-21fbf2
39 changes: 39 additions & 0 deletions bsp/package.mill
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package build.bsp
// imports
import mill._
import mill.contrib.buildinfo.BuildInfo
import mill.T


object `package` extends RootModule with build.MillPublishScalaModule with BuildInfo {
def compileModuleDeps = Seq(build.scalalib)
def testModuleDeps = super.testModuleDeps ++ compileModuleDeps
def buildInfoPackageName = "mill.bsp"

def buildInfoMembers = T {
val workerDep = worker.publishSelfDependency()
Seq(
BuildInfo.Value(
"bsp4jVersion",
build.Deps.bsp4j.dep.version,
"BSP4j version (BSP Protocol version)."
)
)
}

override lazy val test: MillScalaTests = new Test {}
trait Test extends MillScalaTests {
def forkEnv: T[Map[String, String]] = T {
// We try to fetch this dependency with coursier in the tests
worker.publishLocalCached()
super.forkEnv()
}

def forkArgs = super.forkArgs() ++ Seq(s"-DBSP4J_VERSION=${build.Deps.bsp4j.dep.version}")
}

object worker extends build.MillPublishScalaModule {
def compileModuleDeps = Seq(build.bsp, build.scalalib, build.testrunner, build.runner) ++ build.scalalib.compileModuleDeps
def ivyDeps = Agg(build.Deps.bsp4j, build.Deps.sbtTestInterface)
}
}
Loading
Loading