我使用的代码来自https://github.com/alexromanov/gatling-grpc-tests-sample 我在 src/main 下添加了新的 protobuf,并在 src/test/scala/load 下添加了一个 newSimulation.scala。该代码工作正常并且能够运行。现在的问题是我想要一个可以执行 newSimulation.scala 的 jar
所以我的两个问题?
谢谢
我试过
sbt assembly
和sbt test:assembly
不认为它有效,因为它一直要求我上主课。
您是否尝试指定
assembly / mainClass := Some("com.example.Main")
?
见https://github.com/sbt/sbt-assembly
我在他们的
build.sbt
中看不到https://github.com/alexromanov/gatling-grpc-tests-sample/blob/main/build.sbt
(以防万一,你的
sbt
和sbt-assembly
是什么版本?)