Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
8.4k views
by Contributing Tester (78 points)
While analyzing the android code(KOTLIN)using sonarqube.I have faced this issue as 'Please provide compiled classes of your project with sonar.java.binaries'.

How to find and set the path.
by The go-to Tester (142 points)
Are you using maven? Share you pom.xml if you are using maven, or share gradle file in case of you are using gradle.

Also, share command you are using to analyze.
by Contributing Tester (78 points)
Actually I have not developed android using kotlin language.I have andoid code.I am analyzing using sonarQube.
1.Start the SonarQube.
2.Set the environmental variable for sonarscanner.
3.Then I have added the property file of sonar scanner.
sonar.projectKey=Sample
sonar.projectName=Sample
sonar.projectVersion=1.0
sonar.sources=.
4.Then i go to project folder and then start sonar-scanner.bat command.
5.Then sonar scanner is running and finally it shows the error as 'Please provide compiled classes of your project with sonar.java.binaries'.
I dont know the path for sonar.java.binaries in that project.

1 Answer

0 like 0 dislike
by Master (1.2k points)

It looks like java.sources has to be provided.

Try

java.sources=src/main/java/

by Master (1.2k points)
Also, set your property like this sonar.java.binaries=bin, it has to be set to the directory containing the binaries.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...