updating build.gradle to use latest gradle plugin