add gradle support for /library
Merge pull request #141 from felixb/gradle

add gradle support for /library