Need some help with SonarQube 9 that now requires Java 11
- Using SonarQube 9 with Azure DevOps Yaml Pipeline
- Maven@3 task for Sonar requires Java 11, yet Code must be compiled with Java 8
- How do I compile with Java 8 and run the scanner against Java 11 in one task
- toolOption jaCoCo adds clean phase to Maven goal, removes all previously compiled code
DevOps Pipeline looks roughly like this:
... - task: Maven@3 jdkVersionOption: '1.11' goals: 'sonar:sonar' codeCoverageToolOption: 'jaCoCo' sonarQubeRunAnalysis: true ... - task: SonarQubeAnalyze@4 - task: SonarQubePublish@4 inputs: pollingTimeoutSec: '400'
Anyone have an idea how to achieve this? Is there an alternative solution that does basically the same?