Skip to content

Plugin 3.0.0 requires Java 11 - incorrectly? #611

@hostalp

Description

@hostalp

Describe the bug
The latest version (3.0.0) of this plugin appears to require Java 11.
However as it's claimed to support Sonar 8.9+ where Java 8 is still supported for the scanners: https://docs.sonarqube.org/8.9/requirements/requirements/#header-3 this requirement seems incorrect.
Our Maven projects that use Java 8 and this plugin are now getting an error about the plugin being compiled for Java 11.
We had to revert to the plugin 2.0.8 for now.

Current behavior
Maven output:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project xyz: The plugin [dependencycheck] does not support Java 1.8.0_322: org/sonar/dependencycheck/DependencyCheckPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Versions (please complete the following information):

  • sonarqube 8.9.7 @ java 11.0.14
  • dependency-check-sonar-plugin 3.0.0
  • maven 3.6.3 @ java 8u322
  • sonar-maven-plugin 3.9.1.2184

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions