I have multi-module project under SBT.
Project A
(library) has reference.conf
file with A
's configuration parameters. Project A
depends on akka-actor
library, which ships with its own reference.conf
file. Project A
redefines some akka
's parameters in own reference.conf
.
Project B
depends on A
.
When I call ConfigFactory.load()
in B
, I'm getting wrong order of reference.conf
s merging. It first takes A
's config, then applies akka-actor
's config over it. Eventually, I'm getting initial akka-actor
's configuration.
How can I fix it? I need to get akka-actor
's config loaded first, then my A
's config should be applied over it.
ConfigFactory.load()
. Documentation claims: it will apply allreference.conf
files in classpath. But it didn't specify in what order. I'm looking the way how to specify concrete order of applicationreference.conf
files. – Lareelareenareference.conf
is for the applications own configuration, not for overriding configuration in a transient dependency library. As I recall it there are no guarantees about class path ordering, so you can probably not protect against it in any other way than to override settings elsewhere. – Willwilla