Passing a list of strings to a custom plugin from a build.gradle

Hi,
how can i pass a group of strings as a list to a groovy plugin from a build that applies that plugin.
Can it be received as an indexed list in the plugin extension class?
Thanks

This can be solved with a List<String> property on an extension object. See Making the plugin configurable which demonstrates a simple String property

For those who will arrive next on this you can declare your extension with ListProperty instead of Property and declare it in your gradle file as an array ["my-string", "my-string-2"]