gradle-override-plugin icon indicating copy to clipboard operation
gradle-override-plugin copied to clipboard

Ability to override List/Set/Map property

Open szpak opened this issue 10 years ago • 4 comments

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

szpak avatar Oct 06 '14 15:10 szpak

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

bmuschko avatar Oct 09 '14 18:10 bmuschko

What encoding format did you think about? Groovy like?

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

szpak avatar Oct 17 '14 22:10 szpak

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.

bmuschko avatar Oct 20 '14 23:10 bmuschko

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.

jmcgarr avatar Apr 18 '17 20:04 jmcgarr