summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-07-09 08:10:20 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-07-22 19:49:52 +0100
commit52d7675ad9c73d50316cf6b4ebbce7abf3b14fcd (patch)
tree8167f2c9c6ef1e5bb95f1597e2b1e04be78c9581 /build.sc
parent8e1b19668bda442065ee7ec90ce541c6ca3c29bc (diff)
downloadspacebeans-52d7675ad9c73d50316cf6b4ebbce7abf3b14fcd.tar.gz
spacebeans-52d7675ad9c73d50316cf6b4ebbce7abf3b14fcd.zip
Assembly filename
Diffstat (limited to 'build.sc')
-rw-r--r--build.sc7
1 files changed, 7 insertions, 0 deletions
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")