0
votes

I'm trying to use Sonar to find smells in my project. I tried to follow the instructions and googling but couldn't find anything. My problem is that if I try to run the command./gradlew sonarqube \ -Dsonar.projectKey=re-exam-group-16-daniel-dovhun \ -Dsonar.host.url=http://localhost:9000 \ -Dsonar.login=sqp_c28433bf81a423a395a80fd36e5e456f0bf44e5b the output I get is that anything relating to the -Dsonar flag is not recognized as an internal command. My gradle.properties looks like this:

plugins {
    id 'com.android.application' version '7.1.3' apply false
    id 'com.android.library' version '7.1.3' apply false
    id "org.sonarqube" version "3.4.0.2513"
}

task clean(type: Delete) {
    delete rootProject.buildDir
}