What is the 'projectConfiguration' property and how do I fix the fact it is missing?

I had the same issue with IDEA 2017.1 and Gradle 4. Some modules didin’t import correctly, IDEA ‘Gradle projects’ view didn’t show source sets, and ‘test’ source set wasn’t even added to intellij’s classpath, so running tests under intellij caused ‘empty test suite’ errors.

The only thing I could do was downgrading Gradle to 3.5