fix #96 gradle build

This is to keep compatible with maven local project.