How to make version range dependency on the snapshot? or get the latest snapshot version?

what should i write if i want to obtain the latest snapshot version which should within the 2.0.0 to 2.X.X


compile “[2.0.0-3.0.0)-SNAPSHOT” }

Looking at the same issue here. Any hints?

What’s the use case behind only wanting snapshots, rather than the snapshot or release with the highest version number? If you want the very latest snapshot or release, ‘latest.integration’ should work.