After upgrading to Eclipse/Spring Tool Suite 4.11.0, Gradle refresh on a Java 15 project fails to work and reports the error Unsupported class file major version 60 (= Java 16), even though Java 15 is set up in Preferences -> Java -> Installed JREs.
Gradle Buildship is installed as Eclipse plugin.
Solution is to explicitly set the Java version in Gradle preferences.
Additional info: Eclipse itself starts up with an embedded Java 16 as per
SpringToolSuite4.ini:The Java version that Eclipse is started with, should not influence the Gradle Buildship plugin, but it does.