Added support of gradle.