add support for building with gradle