Moving library to gradle