make it support gradle
the gradle version must 1.10-all.
cleanup code