it's basically a cheap version of dependency locking
g
gildor
12/09/2018, 1:17 AM
How is exclude related to dependency locking?
o
octylFractal
12/09/2018, 1:47 AM
allows you to exclude versions you don't want, forcing gradle to pick the one that's left
g
gildor
12/09/2018, 4:27 AM
But this is not locking and even not related to versions directly, rather removing some parts of dependencies graph
gildor
12/09/2018, 4:28 AM
Gradle has configuration control which allow you to force version of particular dependency and real dependency locking, don't think that exclusion can be called "dependency locking", because locks nothing
o
octylFractal
12/09/2018, 4:38 AM
it isn't dependency locking, but it can be used to emulate it poorly
g
gildor
12/09/2018, 4:46 AM
I just think it's misleading statement because you cannot "lock" anything using exclude, just exclude and let Gradle resolve dependencies graph without this dependency
If you want to lock some version you have to use resolution strategy API or lock files