Updated build configuration for newer gradle and build tools versions