Updated gradle build files and plugins to use latest version