SQ 7.3 CE, Groovy 1.5 plugin => gradle sonarqube [FAILED]


(Krzysztof Szymko) #1

Hi,

after upgrading SQ from 7.2 to 7.3 on Win10 gradle task (sonarqube) is NOT working.
With SQ 7.2 it all worked just fine (project has 100% groovy sources).

  • versions used
  1. SonarQube 7.3, Scanner 3.2.0.1227, Groovy Plugin 1.5
  2. JDK 1.8.0_181, Gradle 4.9, PostgreSQL 10.5
  • error observed
> Task :sonarqube FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sonarqube'.
> org.sonar.plugins.groovy.codenarc.CodeNarcSensor has unsatisfied dependency 'class org.sonar.plugins.groovy.foundation.GroovyFileSystem' for constructor 'public org.sonar.plugins.groovy.codenarc.CodeNarcSensor(org.sonar.api.profiles.RulesProfile,org.sonar.plugins.groovy.foundation.GroovyFileSystem)' from org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@795f75c:261<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@2fb8e56c:235<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@3109f0f1:9<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@1016f71f:47<
  • steps to reproduce
  1. Install SQ 7.3 CE (upgrade from 7.2)
  2. run in CLI: gradle sonarqube

(G Ann Campbell) #2

Hi,

In 7.3 we dropped a number of long-deprecated APIs, consequently making some plugins incompatible. Most of the relevant plugins had already been marked incompatible in the Marketplace, but we missed this one. I’ve just made the update in the Marketplace / Plugin Version Matrix. If you want to see this fixed, I urge you to enter a GitHub issue on the repository (and possibly submit a PR).

Unfortunately, this means that you’ve upgraded to a version which doesn’t support all of your projects, and there’s no downgrade except to revert to the database backup you made before upgrade.

I’m very sorry for the inconvenience.

Ann


(puci) #3

Hi,
thans Ann for Your information. I’d like ask if is any chance that groovy will be supported in SQ 7.3 (or higner version) in the future. Or if the support is at the end. I have the same problem as kszymko.

Thanks,
puci


(Tatiana Durova) #5

Strange, I use * Version 7.0 (build 36138)
and I don’t see any analyse for Grovvy files, might be I configured something qwrong…

but we use groovy 2.4.13


(G Ann Campbell) #6

Hi,

It’s entirely possible that the Groovy analyzer lost compatibility at an earlier point in the SonarQube history and it just wasn’t noticed. To verify before I change things in the Marketplace: You’re using SonarQube 7.0 and version 2.4.13 of the Groovy analyzer and getting errors?

Ann