如何访问诸如assemblyJarName之类的sbt变量的值?

时间:2018-05-31 03:46:49

标签: sbt sbt-assembly

<1.1>版本1.1.5 例如,如何在build.sbt中打印它?
println(assemblyJarName.value)无效,原来是错误的:
 [error] Did you mean assemblyPackageDependency / assemblyJarName ?

1 个答案:

答案 0 :(得分:0)

如果在assemblyJarName中定义了build.sbt

assemblyJarName in assembly := "hello.jar"

然后在您按以下方式致电in assembly时尝试提供value

println((assemblyJarName in assembly).value)