An API incompatibility was encountered while executing org.sonarsource.scanner.maven

Not sure I understand. This post seems to suggest that is exactly what this property does for the sonar plugin(Maven project and sonar scan needs different java version to run), If this property does not allow you to specify a separate JDK for the sonar plugin to use then what is the point. Just asking since I have a similar issue attempting to update sonar scans to use Java 17 without incurring the cost of updating my application to use 17 as well.