Must-share information (formatted with Markdown):
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: Gradle
- what are you trying to achieve
- Run the gradle task successfully
- what have you tried so far to achieve this
- So it works but only on old versions. So below is versions it worked and does not work
-
6.3.1.5724 latest broke
4.4.1.3373 broke
4.3.1.3277 broke
4.3.0.3225 broken
4.2.1.3168 working
3.5.0.2730 working
3.3 working
Note I did a review of what changed and bugs with 4.3 release
Comparing 4.2.1.3167...4.3.0.3222 · SonarSource/sonar-scanner-gradle · GitHubI found from reviewing bug reports this release adds scanning of settings.gradle.kts. Note I was on latest and it was working. But then I made a change to my settings.gradle.kts and the gradle task stopped working. Will give my settings.gradle.kts
-
- So it works but only on old versions. So below is versions it worked and does not work
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
> org.gradle.tooling.BuildException: Could not execute build using connection to Gradle distribution ‘https://services.gradle.org/distributions/gradle-8.13-bin.zip’.
pluginManagement {
repositories {
mavenLocal()
maven {
val artifactory_contextUrl: String by extra
val artifactory_repository: String by extra
val artifactory_password: String by extra
url = java.net.URI.create("${artifactory_contextUrl}/${artifactory_repository}")
authentication {
register("header", HttpHeaderAuthentication::class)
}
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = "Bearer $artifactory_password"
}
}
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenLocal()
maven {
val artifactory_contextUrl: String by extra
val artifactory_repository: String by extra
val artifactory_password: String by extra
url = java.net.URI.create("${artifactory_contextUrl}/${artifactory_repository}")
authentication {
register("header", HttpHeaderAuthentication::class)
}
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = "Bearer $artifactory_password"
}
}
}
}
rootProject.name = "ProjectName"
include(":module2")
include(":module")