Updating gradle build script so that 'check' task also builds and runs maven example

... with some basic sanity checks. Refs #13.