Hi alireza,
You could create a gradle task which only iterates through dependencies, this would make sure gradle resolves them.
Something like in this thread: How to get absolute path of a file declared in dependencies?
You don’t even have to print them, just make sure to iterate through the list.
Is this similar to what you are looking for?
Good luck,
Csaba