Gradle 3.1 fails with UnsupportedOperationException and works on Gradle 2.14

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.