Thanks, I see that the closure gets coerced to action and receives the domain object as argument, but this is not the same as using the configure {...} method. In particular, it appears that the closure delegate is not set or at least IDEA does not recognize the container DSL inside the closure.
Also, where can I see what kind of decorations does the Gradle instantiator add to my objects?
(If there is no documentation, could you point me to the code that does that?)
The object that has the container method needs to be created through the ObjectFactory, otherwise the Closure-taking method will not be generated. Then you can simply do
Right now I am using the non-dsl style in my build, so I don’t have an example handy. I didn’t really try whether the DSL worked as at that time there were other problems in the code, but it was red in IntelliJ editor - there is a chance that it was an IDE problem.
Will try again later and if necessary post example code here or a link to YouTrack issue.