I am trying to add sonarqube to my project and I followed the steps and added those lines to my build.gradle
file
plugins {
id "org.sonarqube" version "3.3"
}
sonarqube {
properties {
property "sonar.projectKey", "myproject"
property "sonar.organization", "myusername"
property "sonar.host.url", "https://sonarcloud.io"
}
}
However, I get the following error:
Task 'sonarqube' not found in root project 'myproject'
I am using Gradle 6.9
CodePudding user response:
The solution was to specify the location of my settings.gradle
file as it is not located in the same folder than my build.gradle
file.
--settings-file=