add gradle support.