updated library to use gradle.