sbt-assembly icon indicating copy to clipboard operation
sbt-assembly copied to clipboard

Error while formatting jarName with branch name.

Open dorazioel opened this issue 2 years ago • 0 comments

Hello, I'd like to make the branch I'm working on appear in my .jar name like "something-something-branchName". The command to get the branch name is Process("git rev-parse --abbrev-ref HEAD").!! but if try private lazy val jarName = assemblyJarName in assembly := { s"${name.value}-assembly-${Process("git rev-parse --abbrev-ref HEAD").!!}.jar" } I get java.io.FileNotFoundException.

Can you help me? Thank you

dorazioel avatar Mar 28 '22 15:03 dorazioel