Hi guys, I have a question about dependency resolu...
# community-support
j
Hi guys, I have a question about dependency resolution "programmatically". Right now, I would like to resolve a dependency, corresponding to a previous/old artifact version of my project. I do it like this:
Copy code
Dependency oldDep = project.getDependencies().create("net.nanthrax.test", "foo", "1.5.0");
Configuration myConfig = project.getConfigurations().create("my-config", conf -> {
  conf.getDependencies().add(oldDep);
  conf.setCanBeConsumed(false);
  conf.setVisible(false);
});
myConfig.setTransitive(false);
When I resolve the dependency, I get always the latest the version resolved (1.6.0-SNAPSHOT in my case) as it's attached to my project. Any way to "force" 1.5.0 version to be resolved ?