Revise toolkit to library in gradle