Updating gradle build script so that 'check' task also builds and runs the maven example with some basic sanity checks. Refs #13.