support gradle for building 0.8.1 and higher