update build scripts for gradle 2.2.1

Signed-off-by: KhasMek <Boushh@gmail.com>