Currently the play framework documentation says how to setup dependencies for the whole project without dividing them between running modes. The previous method allowed this by putting something l开发者_运维问答ike %test.
before module definitions in the application.conf
file (which still works).
Is there a way to do it right in the dependencies.yml
file, or should it be still mixed with the old method?
I may be wrong but I don't think it's possible to differentiate dependencies between dev/prod/test mode.
The %test was designed only to set some configurations, not change the deps IMO.
But, modifying the DependencyManager play class to manage a different dependencies.yml according to the running mode shouldn't be difficult.
We could almost ask directly to play list if people would like to have it.
精彩评论