This is a shot in the dark, but I had the same problem (another project), and the search is how I landed here on SO. In my case, the error was caused by '+ =' in my script, which added one element to the collection. Another answer to the OP question from another forum is to just use Gradle 1.12.
NTN.
This answer has a broader scope than the textbook assembly, and also applies to those who land here looking for a solution to the actual error reported by the assembly.
From Gradle Community Forums :
Gradle 2 has been updated to Groovy 2.3, which no longer supports the use of + = to add a single item to a collection. Therefore, instead of scopes.PROVIDED.plus + = configurations.provided, now now scopes.PROVIDED.plus + = [configurations.provided]. (Other uses of "+ =" are fine.)
source share