The Spotless Gradle Plugin version you are using requires that you run Gradle with at least Java 11, but you run it with Java 8.