Rubin Simons
Rubin Simons

Reputation: 1715

SonarQube for Gradle: Component can't be null

I'm trying to use SonarQube on a Gradle multiproject. I can't figure out what's going on!

Any pointers much appreciated. The stacktrace:

[rubin@eve adhub (issues/SAV-1083)]$ gradle sonarqube --stacktrace

Configure project :
BRANCH: issues/SAV-1083
project version from Git: 0.4.0-SNAPSHOT

Task :sonarqube
Metric 'public_documented_api_density' is an internal metric computed by SonarQube. Provided value is ignored.
Metric 'lines' is an internal metric computed by SonarQube. Provided value is ignored.
Metric 'public_documented_api_density' is an internal metric computed by SonarQube. Provided value is ignored.
Metric 'lines' is an internal metric computed by SonarQube. Provided value is ignored.
Metric 'test_success_density' is an internal metric computed by SonarQube. Provided value is ignored.
Coverage measure for metric 'lines_to_cover' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
Coverage measure for metric 'uncovered_lines' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
Coverage measure for metric 'coverage_line_hits_data' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
Coverage measure for metric 'conditions_to_cover' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
Coverage measure for metric 'uncovered_conditions' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
Coverage measure for metric 'conditions_by_line' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
Coverage measure for metric 'covered_conditions_by_line' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.


FAILURE: Build failed with an exception.

Upvotes: 2

Views: 996

Answers (1)

Rubin Simons
Rubin Simons

Reputation: 1715

Thanks to G. Ann asking me what version my SonarJava plugin was.

The installed SonarJava plugin was 3.14. When I upgraded to 4.12, the problem disappeared. Thanks G. Ann!

Upvotes: 0

Related Questions