How to track the current SNAPSHOT dependency version?

When gradle resolves shapshot versions, for each snapshot dependency I would like to get the exact version which was downloaded for gradle. So for example, if I have a dependency declared as
a.b.c:x.y.z:1.2.3-SNAPSHOT I would like to get

Any ideas how can I achieve that?

problem background:
My build deals with many changing artifacts that keep constantly changing. This impacts the build stability. Once my project builds successfully I would like to store the exact versions of the dependencies so I can replace the snapshot dependencies with non-changing ones (at least temporarily), so I can focus on my work.