I need to configure Ivy lock strategy in sbt build.
I tried to place externalIvySettings(baseDirectory(_ / "ivysettings.xml"))
in Build.scala
ivysettings.xml:
<ivysettings>
<settings defaultResolver="default"/>
<include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
<include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
<lock-strategies>no-lock</lock-strategies>
</ivysettings>
But in this case sbt cannot resolve dependencies(I suppose because resolvers are shielded by resolvers from ivysettings).
How can I configure lock strategy in Build.scala
?