Changed targets() to getTargets() for canonical groovy usage