add gradle build for lib