Thanks Kenn, rookie mistake on my part :-)
A further question if I may - "./gradlew :javaPreCommit" is failing for me with:
org.apache.beam.examples.WindowedWordCountIT > testWindowedWordCountInBatchDynamicSharding FAILED
org.apache.beam.sdk.Pipeline$PipelineExecutionException at WindowedWordCountIT.java:188
4 tests completed, 4 failed
> Task :beam-examples-java:directRunnerPreCommit FAILED
Looking at the report I see:
"Caused by: java.lang.RuntimeException: Unable to get application default credentials. Please see https://developers.google.com/accounts/docs/application-default-credentials
for details on how to specify credentials. This version of the SDK is dependent on the gcloud core component version 2015.02.05 or newer to be able to get credentials from the currently authorized user via gcloud auth."
It looks like some of the examples require google credentials to run properly?