Updated to Gradle 1.4, fixed deprecated and obsolete functionality.