Check gradle version before building