This is an automated email from the ASF dual-hosted git repository. vladimirsitnikov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jmeter.git
commit 80ac903f5eba39b99149c51ca1fd5d88dff17d90 Author: Vladimir Sitnikov <[email protected]> AuthorDate: Sat Aug 3 22:46:35 2019 +0300 Add SpotBugs results to Sonarqube report --- build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 1d82fcd..7b26638 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -181,6 +181,20 @@ sonarqube { } } +if (enableSpotBugs) { + // By default sonarqube does not depend on spotbugs + val sonarqubeTask = tasks.sonarqube + + allprojects { + sonarqubeTask { + dependsOn(tasks.withType<SpotBugsTask>().matching { + // We don't send spotbugs for test classes + !it.name.endsWith("Test") + }) + } + } +} + allprojects { group = "org.apache.jmeter" // JMeter ClassFinder parses "class.path" and tries to find jar names there,
