library ported to gradle