How can I set the sonarscanner to use only java quality profile for java project

I use sonarscanner cli to analyze the java project instead of sonar plugin of gradle. but looks the sonarscanner analyze the html, python, css, xml and javascript files for issue as well, how can I set the cli parameters analyze only java file?

SonarScanner cli

$ sonar-scanner \
-Dsonar.projectKey=service-master \
-Dsonar.projectName=service-master \
-Dsonar.sources=. \
-Dsonar.language=java \
-Dsonar.sourceEncoding=UTF-8 \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=******* \
-Dsonar.branch.name=master \
-Dsonar.organization=myorg \
-Dsonar.java.binaries=myproject/build/classes/java \
-Dsonar.java.test.binaries=myproject/build/classes/test \
-Dsonar.coverage.jacoco.xmlReportPaths=myproject/build/reports/jacoco.xml \
-Dsonar.coverage.exclusions=myproject/src/test/**
......................
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for java: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for py: Sonar way
INFO: Quality profile for web: Sonar way
INFO: Quality profile for xml: Sonar way
......................

SonarScanner for Gradle

$ ./gradlew jacocoTestReport sonarqube --stacktrace \
-Dsonar.login=***** \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=myorg \
-Dsonar.projectKey=service-master \
-Dsonar.projectName=service-master \
-Dsonar.branch.name=master \
-Dsonar.coverage.exclusions=myproject/src/test/**
......................
0 files ignored because of scm ignore settings
Quality profile for java: Sonar way
......................

Welcome to the Community!

Although you could disable analysis of non-java files by setting the sonar.exclusions and sonar.test.exclusions properties to comma-separated filename extensions to exclude (for example: **/*.py,**/*.css,...), it’s probably better to manage this using quality profiles on SonarCloud UI. On SonarCloud, you could create an “Empty” quality profile for languages you are not interested in, and you could configure your project to use that instead of the default.

But I’m curious, why do this? Why not analyze all code?

Thanks Janos for the reply.
Actually I just want to stay the same behavior with sonarscanner gradle plugin, looks sonarscanner gradle plugin analyze java code only. Python, html, javascript are not analyzed in my project.