Modify dorelease.sh to use the gradle wrapper, and add testing
BUILD.md: warn about gradle not running tests by default where maven does