Our Gradle builds are broken since we upgraded from
org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1
to
org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1
Versions used
Sonar Server:
7.9.4 (build 35981)
Community edition
Sonar Gradle plugin:
3.1.1
Error observed
* What went wrong:
A problem occurred configuring root project 'xxx'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1.
Required by:
project : > org.sonarqube:org.sonarqube.gradle.plugin:3.1.1
> Could not resolve org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1.
> Could not parse module metadata https://nexus/content/groups/java_repo/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/3.1.1/sonarqube-gradle-plugin-3.1.1.module
> Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 1 path $
We observed that starting from version 3.1.1
on the Maven Central , there is no more module file.
We’re using Nexus to cache our artifacts.
Since there is no more module file, Nexus is responding with a weird html content wich causes the metadata JSON parser to fail
Could you explain me:
Why there is no more module files on the central? Is that intentional?
Do we need to change something in our Gradle conf to be able to upgrade from 3.1
to 3.1.1
?