gradlized shit
updated for 1.7 (tested)