Access to the multi-values/property set property ‘sonar.java.binaries’ should be made using ‘getStri

Hi,

I have the same warnings as described here:

I understand from that ticket [SONARKT-201] Update usage of sonar-plugin-api for libraries and binaries parameters - SonarSource that is is corrected in the 2.10 version.

Here is my configuration:

  • ALM used: Gitlab
  • CI system used: Gitlab
  • Scanner command used: ./gradlew -Pdev -Dsonar.login=<mySecret> -Dsonar.host.url=https://sonar.tools.<mycompany.com> -Dsonar.log.level=TRACE -Dsonar.verbose=true sonarqube
  • Languages of the repository: Kotlin

I used the 3.4.0.2513 Gradle plugin.

./gradlew buildEnvironment gives me:

+--- org.sonarqube:org.sonarqube.gradle.plugin:3.4.0.2513
|    \--- org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513
|         \--- org.sonarsource.scanner.api:sonar-scanner-api:2.16.2.588

However I get the same warning:

> Task :sonarqube
Access to the multi-values/property set property 'sonar.java.binaries' should be made using 'getStringArray' method. The SonarQube plugin using this property should be updated.
Access to the multi-values/property set property 'sonar.java.libraries' should be made using 'getStringArray' method. The SonarQube plugin using this property should be updated.
Access to the multi-values/property set property 'sonar.java.binaries' should be made using 'getStringArray' method. The SonarQube plugin using this property should be updated.
Access to the multi-values/property set property 'sonar.java.libraries' should be made using 'getStringArray' method. The SonarQube plugin using this property should be updated.

Maybe 2.10 version does not correspond to sonar-scanner-api. which component is it? How can I get the correct version to not have those warnings?

Thanks in advance for your help.

Best regards

Marc

Hey there.

A fix for the issue will be included in the next release of SonarQube, v9.6.

Hi Colin,

Tanks a lot for this precision.

Best regards

Marc

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.