ExternalIssuesReportPaths in Gradle

Hi team,

I’m trying to upload a report to Sonar using ExternalIssuesReportPaths but its not working using Gradle plugin (other plugins it does work).

I’m using SQ 8.9 Enterprise.

Here you have some configurations:

Report file: out.json (10.2 KB)

plugins {
    id 'java'
    id 'jacoco'
    id 'org.sonarqube' version '3.3'

allprojects {
    version = '1.0.2'
    group = 'org.sonarqube.sample'

    repositories {

subprojects {
    apply plugin: 'org.sonarqube'
    sonarqube {
        properties {
            property 'sonar.coverage.jacoco.xmlReportPaths', "$projectDir.parentFile.path/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml"

    tasks.withType(Test).configureEach {

apply from: "$project.rootDir/sonar.gradle"
apply plugin: "org.sonarqube"

sonarqube {
    properties {
        // Insert other SonarQube properties here
        property 'sonar.projectKey', 'test-gradle'
        property 'sonar.name', 'test-gradle'
        property 'sonar.branch.name', 'test/test-gradle'
        property 'sonar.externalIssuesReportPaths', file("${rootProject.projectDir}/out.json")

Can you please help?


Welcome to the community!

I’m not aware of an import property by that name. Those properties are specific to the issue report source - so we know how to read each one. Check out the docs to find the right property for the report you’re using.