Gradle project isolation

I’m looking to sonar gradle plugin (v7.2.3.7755) and I see it is reported as doing violations that prevent gradle isolated projects:

  • Project ‘:’ accesses Project.extensions on subprojects via allprojects {}
  • Project ‘:’ accesses Project.tasks on subprojects via allprojects {}

Hi,

Is this an Android project?

 
Ann

I have the same issue. This can happen in any Gradle project, even plain java, when you build with the new isolated projects feature: -Dorg.gradle.unsafe.isolated-projects=true

Please consider supporting it, it can speed up your project a lot if you have lots of modules, and in my case sonar is the only plugin that does not support it

Update: looks like this is already answered here: Sonar Gradle plugin should not use allprojects

Hey @emartynov and @StefanDukatIsta,

Are you still experience this issue with the latest version of the pluign?

Yeah its still an issue in 7.3.1.8318

Still a issue in latest release, I would like to start using isolated proects but this is blocking

Hi Vincente,
We are looking into the work that needs to go in to get working. With the release of 9.7.0, we now have a clearer picture of the feature is eventually going to look like. It does not, however, make any of this work any easier.

We will work on clarifying our plan with regards to project isolation and get back to you as soon as that is done.

Cheers,

Dorian

@Dorian_Burihabwa any update or ETA? All Google and Jetbrains Gradle plugins out there are basically ready. Also external plugins like Spotless added support at the beginning of the year. Would be great to get support from SonarQube Gradle plugin and actually benefit from this major performance improvement.

Hi @G00fY2,
No update at this time. A plan is still being worked on.

We know the support of isolated projects requires substantial changes to the way we analyze Gradle projects and build our plugin.

A conservative timeline has us working on this topic in the early fall but the effective delivery plan is still to be clarified.

Best,

Dorian