How to copy dependencies so Gradle can possibly report "UP TO DATE"?

This is the exact same question as I answered in this thread.