aboutsummaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-09-28 08:11:35 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-09-28 08:11:35 +0100
commit155beb280823d9efad65dd20dedc8a145faebbcd (patch)
treef8071fbe71e5b4e932e9509713de1ce3484b61de /build.sc
parentcc0fbaec420c3e45f2bab1885c8c4d7e41c103eb (diff)
downloadspacebeans-155beb280823d9efad65dd20dedc8a145faebbcd.tar.gz
spacebeans-155beb280823d9efad65dd20dedc8a145faebbcd.zip
Updatet Mill to 0.11.12
Diffstat (limited to 'build.sc')
-rw-r--r--build.sc19
1 files changed, 10 insertions, 9 deletions
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(";"))
}
}