Gradle 3.1 fails with UnsupportedOperationException and works on Gradle 2.14

Gradle Version: 3.1
Operating System and JVM version: Mac OS X 10.12 x86_64, JVM 1.8.0_102 (Oracle Corporation 25.102-b14)
Is this a regression? yes, works with Gradle 2.14

Project that is experiencing this problem:


Gradle Scans: - this is the link to the functioning Gradle 2.14 build - this is the link to the failing Gradle 3.1 build

It looks like you’re having the same issue as described here.

Can you try using a newer version of the spring-boot plugin? The build scan reports that you are using 1.2.5.RELEASE and the above discussion says that 1.4 fixed this issue for them.