Open romanchelsea opened 3 weeks ago
You are right. Other scopes than Compile
are not supported out of the box. In fact, it's not even just Compile
because it also has to take Runtime
resources into account as well. I think that was the main blocker why I never tried to get anything else working (e.g. Test
would be useful often as well). One would have to research how Compile
and Runtime
resources are used together for these kinds of things and then see how that would transfer to Test
and even custom ones. I think your best bet could be to copy the whole RevolverPlugin.settings
block into your build and try to adapt it to work with your custom scope.
Btw. one question would be whether you really need run your tests or integrations test with sbt-revolver? Couldn't you just run them with test
or run
in which case just the normal config (without reStart
bits) should work out-of-the-box?
Hi I'm relatively new to scala ecosystem.
I have
reStart
("io.spray" % "sbt-revolver" % "0.10.0") configured in my project, and I would like to pass differentjavaOptions
based on dependency configurations, e.g.Compile
,Test
,IntegrationTest
, or even my custom configuration, likeFuncTest
(for functional tests).If I'm reading the README correctly,
reStart
is just based onCompile
, right?I've been trying something like below, but my custom
FuncTest
configuration is not picking up a different logging configuration, i.e.logback.funcTest.xml
, verified by checking the java process in shell.However, running below command in sbt shell works,
Would you please shed some light? Thanks!