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?
Colm.
On Tue, Oct 16, 2018 at 4:07 PM Kenneth Knowles <[email protected]> wrote:
> One thing to clarify is that `:javaPreCommit` is a task and `build` is
> another task. There's so verb-object relationship in your commandline. So
> as written, you've asked for a whole-project `build`, which weirdly in
> Gradle means "build and test". Since it is one commandline, all the
> necessary steps for both tasks will be in one dependency graph so they
> won't be executed twice.
>
> Kenn
>
> On Tue, Oct 16, 2018 at 6:11 AM Colm O hEigeartaigh <[email protected]>
> wrote:
>
>> Hi all,
>>
>> Just a quick question - I was wondering why the python tests/build run as
>> part of the 'javaPreCommit' task?
>>
>> i.e. executing "./gradlew build :javaPreCommit" leads to python tests
>> being run as well, which is not something you might expect from the name of
>> the task.
>>
>> Colm.
>>
>>
>> --
>> Colm O hEigeartaigh
>>
>> Talend Community Coder
>> http://coders.talend.com
>>
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com