Configure existing task via explicit API


(Thibault Kruse) #1

Hi,

in gradle it is possible to configure existing tasks like this:

apply plugin: 'java'
test { testLogging { exceptionFormat "full" }}

However, this is the dynamic DSL API which is not wellsupported by IDEs. I am looking for a way to do this calling a non-dynamic API. The best I can find is: tasks.getByName(‘test’).configure {…
Is there any better (shorter) way?