From 52d7675ad9c73d50316cf6b4ebbce7abf3b14fcd Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 9 Jul 2021 08:10:20 +0100 Subject: Assembly filename --- build.sc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sc b/build.sc index fef43df..4b2ff22 100644 --- a/build.sc +++ b/build.sc @@ -44,6 +44,13 @@ object server extends ScalaModule with ScalafmtModule with BuildInfo { } def buildInfoPackageName = Some("net.usebox.gemini.server") + def assembly = T { + val version = VcsVersion.vcsState().format() + val spacePath = T.ctx.dest / (name + "-" + version + ".jar") + os.move(super.assembly().path, spacePath) + PathRef(spacePath) + } + object test extends Tests with ScalafmtModule { def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.2.5") def testFrameworks = Seq("org.scalatest.tools.Framework") -- cgit v1.2.3