From 155beb280823d9efad65dd20dedc8a145faebbcd Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 28 Sep 2024 08:11:35 +0100 Subject: Updatet Mill to 0.11.12 --- build.sc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'build.sc') diff --git a/build.sc b/build.sc index 7c53ac1..997a960 100644 --- a/build.sc +++ b/build.sc @@ -33,14 +33,12 @@ object server extends ScalaModule with ScalafmtModule with BuildInfo { ) val name = "spacebeans" - def buildInfoMembers: T[Map[String, String]] = - T { - Map( - "name" -> name, - "version" -> VcsVersion.vcsState().format() - ) - } - def buildInfoPackageName = Some("net.usebox.gemini.server") + def buildInfoMembers = + Seq( + BuildInfo.Value("name", name), + BuildInfo.Value("version", VcsVersion.vcsState().format()) + ) + def buildInfoPackageName = "net.usebox.gemini.server" def assembly = T { @@ -50,7 +48,10 @@ object server extends ScalaModule with ScalafmtModule with BuildInfo { PathRef(spacePath) } - object test extends Tests with TestModule.ScalaTest with ScalafmtModule { + object test extends ScalaTests with ScalafmtModule with TestModule.ScalaTest { def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.2.19") + + def forkEnv = super.forkEnv() ++ + Map("MILL_TEST_RESOURCE_FOLDER" -> resources().map(_.path).mkString(";")) } } -- cgit v1.2.3