gradle: Use BndProject.isOk() to determine whether the project failed

Fixes https://github.com/bndtools/bnd/pull/553

Signed-off-by: BJ Hargrave <bj@bjhargrave.com>
Merge pull request #570 from bjhargrave/gradle-isok

gradle: Use BndProject.isOk() to determine whether the project failed