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

plugins

(Nishchay Pant) #1

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


(uklance) #2

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