标签: sbt
除非所有测试都通过,否则在执行sbt或package时如何强制publish 0.11失败?
sbt
package
publish
答案 0 :(得分:3)
在build.sbt中,添加:
build.sbt
publish <<= publish dependsOn (test in Test)
(或package的等价物)