Sam Edwards
03/29/2022, 1:19 AMfailOnChangingVersions()
for a resolutionStrategy. https://docs.gradle.org/current/userguide/resolution_strategy_tuning.html
I tried in a sample project but couldn't figure out how to create a scenario where it showed value. Not quite sure what failOnChangingVersions()
does? Any ideas?Octavia Togami
03/29/2022, 1:24 AM-SNAPSHOT
, I think it's possible for other ones to be "changing" but that's the only example I know of.Octavia Togami
03/29/2022, 1:24 AMOctavia Togami
03/29/2022, 1:25 AMimplementation("my.dep:artifact:1.0-SNAPSHOT")
, failOnChangingVersions()
will cause an errorSam Edwards
03/29/2022, 1:26 AMSam Edwards
03/29/2022, 1:32 AM-SNAPSHOT
dependency and now see (screenshot). Which confirms what you said.Sam Edwards
03/29/2022, 1:32 AMmodule:dependencies
task succeeds, even though it says "FAILURE" when trying to resolve.Octavia Togami
03/29/2022, 1:34 AMassemble
or even just compileJava
as my "cheap" task to do resolution, as if the resolution fails it's the same as if you made a dedicated task.Sam Edwards
03/29/2022, 1:35 AMassemble
succeeds fine, even with this. But... I am not relying on any classes from that module.Sam Edwards
03/29/2022, 1:36 AM