sonarqube {
    properties {
        property "sonar.projectKey", "hex"
        property "sonar.organization", "hexagonal"

        property "sonar.projectKey", "hex"
        property "sonar.projectName", "hexagonal-demo"
        property "sonar.organization", "hexagonal"
        property "sonar.login", "db2b87c604ecbe1728a930d6567d26c54c816c81"

        property "sonar.host.url", "https://sonarcloud.io"
        property "sonar.core.codeCoveragePlugin", "jacoco"
        property "sonar.java.coveragePlugin", "jacoco"
        property "sonar.dynamicAnalysis", "reuseReports"
        property "sonar.sourceEncoding", "UTF-8"
        property "sonar.coverage.jacoco.xmlReportPaths", subprojects.collect { subProject ->
            subProject.tasks.jacocoTestReport.reports.xml.destination
        }
        property "sonar.scm.disabled", "true"
        property "sonar.coverage.exclusions","**/model/**,**/dto/**,**/entity/**,**/usecase/**,**/event/**," +
                "**/*Configuration*,**/configuration/**,**/*Application*,**/*Properties*,**/*Fake*," +
                "**/*Exception*,**/common/**,**/*Port*,**/*ContractTest*,**/acceptance-test-suite/**,**/*Admin*"

    }
}