added support to build via gradle