nebula-plugins/gradle-override-plugin

Ability to override List/Set/Map property

szpak opened this issue · 4 comments

It would be nice to be able to override List/Set/Map properties.

@szpak Would you mind providing test cases for this as well?

What encoding format did you think about? Groovy like?

-Doverride.extension.myList="['foo','bar']"
-Doverride.extension.myMap="[foo:'bar']"

I'd say yes. The square brackets should probably be optional and the single quotes omitted. The tricky part is to convert the values to the correct type - especially if the variable definition is declared with def.

We are doing some housecleaning and we consider this plugin "feature complete". Since this is an enhancement, we will accept PR's but won't be able to prioritize this enhancement.