In ruby, there is a indiom to create a array of strings like this:
names = %w( lucas Fred Mary )
Is there something like that in groovy?
If you really want to create an array rather than a list use either
String[] names = ["lucas", "Fred", "Mary"]
or
def names = ["lucas", "Fred", "Mary"].toArray()