Added support for gradle.