Updated gradle config and removed unnecessary configuration.