This doesn't answer your question directly Pooja, but I also ran into this change during my upgrade and found the 'new' way of accessing lists of modules to be more concise and less error-prone. So I certainly prefer the new way.
older versions:
details {
$("div#detail-row").collect {
module DetailRow, it
}
}
version 1:
details {
$("div#detail-row").moduleList(DetailRow)
}
It took me longer than I would have liked to get this working -- having a before/after example would have helped. I believe the Book of Geb only lists the new way but doesn't show a comparison of the old and new way. I just looked around to see if there's a way to do a pull request for the (otherwise excellent!) Book of Geb but didn't find one. If anyone knows a way to contribute to the Book of Geb, I'd be happy to add this to the documentation.