Edited this library to work with gradle.