add gradle support

add gradle support