11
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sbt-assemblyでjarのファイル名の書式を設定したい

Last updated at Posted at 2014-07-17

デフォルトでは name-assembly-version.jar の書式になる。
assemblyの部分を取り除いたり、バージョンを取り除いたりしたい。

  1. assemblyの文字を取り除く設定
build.sbt
jarName in assembly := { s"${name.value}-${version.value}.jar" }
  1. assemblyのプロジェクト名だけにしたい場合
build.sbt
jarName in assembly := { s"${name.value}.jar" }
  1. 出力先ディレクトリも含めて設定したい場合
build.sbt
outputPath in assembly := file(s"out/${name.value}-${version.value}.jar")
11
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?