add gradle build file

use gradle(version 1.9) version 1.10 may trigger some bugs in gradle.

run `gradle build`