What is the alternative to the sonar.language property in the current version of sonarqube ? Sometime I would like to only scan a specific language. The old way was sonar.language=c and that made sure that the Cfamily plugin was used.
Seriously, if C, C++ or Objective-C files are found in the project, SonarCFamily will automatically be used and no further action on your part is required.
Now if, on the other hand, you want to prevent other languages in the project from being analyzed, then you should do one of these things:
configure sonar.sources not to include those files, assuming this can be done conveniently
as a last-ditch hack, there’s also the option of configuring language file suffixes at the project level to not recognize the other languages’ files (e.g. set the Java file suffix to .foo)
I too am in this same position. We have two versions of a language and now that sonar.language has been deprecated, we do not have an easy way to scan the correct language (custom) from Maven SonarSource plugin