Minor refactor; add get-dependencies method

Interestingly, get-dependencies actually works for a non-android
gradle project I have.... Weird