My sonarqube gradle task is not setting the properties properly. It is still trying to post/connect to localhost:9000. According to this link, I should be able to do the following?
val sonarProperties = SonarQubeProperties(
mapOf(
"sonar.host.url" to "https://mysonar.cloud.com",
"sonar.login" to "my token",
"sonar.sourceEncoding" to "UTF-8",
...
)
)
val sonarExt: SonarQubeExtension = project.extensions.getByName("sonarqube") as SonarQubeExtension
sonarExt.properties(sonarProperties)
Don’t have Admin access. Works fine if I pass it in via cli. ./gradlew sonarqube -Dsonar.host.url=https://mysonar.cloud.com...
also added them to gradle properties and they are being loaded; however, seems like sonarqube plugin/scanner is not picking them up. Also tried systemProp.sonar.host.url, same result
I started in that thread and tried using the SonQubeExtention example but that didn’t work. Seem like this might be the work around from that thread? How/where do I use/apply the SonarPlugin class?