The code in the 5.7.x branch is requiring JDK 11 https://github.com/spring-projects/spring-security/blob/f04cd641b035fc1a3bbed671cc84a3c7c19c759a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurer.java#L162
We should fix this and the build should fail if using a language feature that is not compatible with JDK 8.
Comment From: marcusdacoregio
Fixed via https://github.com/spring-projects/spring-security/commit/60ed3602f6281d1a34c643484dfcb3440e2243d5
Comment From: marcusdacoregio
Reopening this because the solution was a workaround to enable teams from moving forward.