We are using SonarCloud quite extensively for quite some time.
But we are receiving warnings now in our Azure Devops Pipelines that the tasks
- SonarQubePrepare v5
- SonarQubeAnalyze v5
- SonarQubePublish v5
is deprecated.
So we are upgrading to v6, but we do get exceptions on the Analyze step.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@74e52303-org.sonar.scanner.scan.ProjectLock': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DefaultInputProject' defined in org.sonar.scanner.scan.InputProjectProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.fs.internal.DefaultInputProject]: Factory method 'provide' threw exception; nested exception is Validation of project failed:
Our analyze steps just looks like this:
- task: SonarQubeAnalyze@6
# condition: and(succeeded(), ${{ parameters.isMainBranch }})
inputs:
jdkversion: 'JAVA_HOME_17_X64'
Is there something going on or am I missing something?
Thanks for the feedback!