LPS-49007 Resolve only the confs that are going to be used

Ask Ivy to resolve only those dependencies that are going to be
used, thus preventing the build to fail because a test dependency is
missing.