Converted to gradle build for library only