This message was deleted.
# community-support
s
This message was deleted.
v
Gradle does not do such substitutions itself. You have some BOM or platform or substitution or conflicting version declaration or whatever that does it. Can you maybe share a build scan?
šŸ‘ 1
d
Thank you for your help, @Vampire! I’ve learned heaps from reading your answers in Slack šŸ™ Unfortunately they won’t let me share a build scan 😢 I’m not concerned about the substitution, this seems normal behaviour with dependency management. But I’m surprised by the behaviour where: 1. Gradle looked up the dependency for 1.1.2 (making a HTTP request) 2. Even though the HTTP request failed, the build continued rather than fail. I think this ā€œsurpriseā€ is just from a deficiency in my understanding of how Gradle works. My experience so far has been that if you enter a bogus version of a dependency the build will fail with ā€œCould not resolve all files for configuration….ā€
d
You could also run the dependency query from the command line and find where it's coming from. I've always just piped the results to a text file and then searched that to see.
šŸ™ 1
v
Actually, I think if the dependency is substituted, or conflict resolved or whatever to 1.4.0, I don't think it would even try to download 1.1.2, that would be completely wasted time and Gradle is usually quite good in avoiding that. Maybe have a look at
--debug
logs to see what is going on.
šŸ™ 1
Actually, if in another situation 1.1.2 is not replaced by 1.4.0, but actually 1.1.2 used and a lenient artifact view or lenient configuration is used to resolve the dependencies, then it would indeed make such a request and not fail the build. For example if you use the
dependencies
or
dependencyInsight
tasks. They work lenient on because it makes no sense to fail the build. Their action is too display information about dependencies and it would display it as
FAILED
, but not break the build, because the task to display the information was successful.
šŸ™ 1
d
Thank you all! That’s some helpful clues for me