updated .gradle files to support to gradle 0.9 & AS 0.5.1