Question: I'm encountering an issue relating to de...
# community-support
k
Question: I'm encountering an issue relating to dependency locking and dependency substitution. Essentially, I have a dependency substitution rule:
Copy code
configurations.all {
  resolutionStrategy.dependencySubstitution {
    substitute(module("foo:bar")).using(module("foo:baz:1.0"))
  }
}
And the error that I'm getting is something like
Copy code
Could not resolve all dependencies for configuration 'compileClasspath'
  Resolved 'foo:bar:1.0' which is not part of the dependency lock state
ie. the module being substituted away is at the center of it all. Any insight would be useful.