Currently using 8.4.2 version of SonarQube ,sonar-scanner-4.5 .Configured a jenkins job , sonarscanner is added in global configuration tool and properties set to scan java 8 project
JAVA_HOME is set to jdk 11 for sonarqube server and scanner is running with jdk 8 (JAVA_HOME environment variable point to Java 8 where scanner is executed)
In the properties though we have specified sonar.java.source=1.8 but rules targeting Java 11 are executed and issues raised for that.
can you please suggest what additional configuration required to scan and report issues only with rules targeting java8
Thanks in advance