Alix Alix - 1 year ago 104
Android Question

Proper configuration for "sonar.libraries" in a modern Gradle Android project

What I want to achieve:

In sonar it is possible to track third party dependencies used throughout Projects by setting the property "sonar.libraries" and perhaps there are more benefits

What I tried to do:

I set the value to

but this seems to have little effect.


Since it is no longer needed to use the "libs" folder for third party dependencies, what is the recommendation for the property called "sonar.libraries"?

Answer Source

We need to implement special processing when an Android project is detected. Correctly setting is one of the requirements. A ticket already exists, feel free to vote or provide a pull request.

Update: we have released version 2.1 of the plugin (currently RC1) that natively supports Android projects. Properties and will be automatically populated.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download