make this getTargets() and then reference it as .targets (it's more canonical Groovy that way)