Thanks Daniel. Followed Re: Move to Java 11 (Java 8 deprecated) and gradle sonarqube is working fine in jdk11.