Support gradle

Support gradle.