ConfigurationContainer provides examples with deprecated methods (add)


(Thierry De Leeuw) #1

Looking at http://www.gradle.org/docs/current/javadoc/org/gradle/api/artifacts/ConfigurationContainer.html (gradle 1.6), the examples use configurations.add(‘myConfiguration’) as example, however the add methods seems to have been deprecated (Deprecated. use NamedDomainObjectContainer.create(String) instead)


(René Groeschke) #2

Hello Thierry, thanks for reporting this. I’ve fixed this on master: https://github.com/gradle/gradle/commit/5dcbb0ad01ae491927d9f67050c3550e8aaa62bc

cheers, René


(Thierry De Leeuw) #3

Hi

Thanks for that. I do not want to be picky, however, in the mentioned file there were 2 entries (there is still one at line 34)

Thanks for the fix.

Thierry


(René Groeschke) #4

I thought I fixed that occurence too, too bad. But now it should be fixed. thanks again!