SonarQube plugin doesn't support Java 14

  • sonarqube-gradle-plugin: version “2.8”

  • Travis build failed with error message:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.
 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(
 at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(
Caused by: java.lang.NoClassDefFoundError: java/util/jar/Pack200
at org.sonar.scanner.bootstrap.PluginFiles.unpack200(
at org.sonar.scanner.bootstrap.PluginFiles.get(

more details here

  • steps to reproduce
  1. gradle 6.3
  2. jdk 14 (openjdk)
  3. use --enable-preview flag
  4. create record
  5. ./gradlew sonarqube

commit with changes available here

  • potential workaround
    Remove usage Pack200 in PluginFiles (sonar-scanner-engine)

Consider joining the thread already in progress here.