# \#gradle

**URL:** https://community.sonarsource.com/tag/gradle/29.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [Unexpected behavior in gradle plugin with sonar 2026.5.2](https://community.sonarsource.com/t/unexpected-behavior-in-gradle-plugin-with-sonar-2026-5-2/190511)

<div class="topic-metadata">

**Author:** [@kars\_blom\_triodos](https://community.sonarsource.com/u/kars_blom_triodos)\
**Replies:** 6\
**Last updated:** [October 30, 2026, 10:24am UTC](https://community.sonarsource.com/t/unexpected-behavior-in-gradle-plugin-with-sonar-2026-5-2/190511 "2026-10-30T10:24:11Z")

</div>

After upgrading our Sonar Server to 2026.5.2 (132813), our Gradle Android multi-module projects no longer provide analysis. We see this error: \`\`\`Failed to retrieve A3S collection configuration org.sonarqube.ws.client…

---

## [Support for Gradle testing suites](https://community.sonarsource.com/t/support-for-gradle-testing-suites/182876)

<div class="topic-metadata">

**Author:** [@rkrisztian](https://community.sonarsource.com/u/rkrisztian)\
**Replies:** 3\
**Last updated:** [September 17, 2026, 3:33pm UTC](https://community.sonarsource.com/t/support-for-gradle-testing-suites/182876 "2026-09-17T15:33:48Z")

</div>

For me at least, it’s often not only the test task that exists as a Test task in Gradle. For example, I often add the integrationTest task through the experimental The JVM Test Suite Plugin , and even if it’s unstable AP…

---

## [Sonar multimodule with coverage logging File '\<filename\>' not found in project sources](https://community.sonarsource.com/t/sonar-multimodule-with-coverage-logging-file-filename-not-found-in-project-sources/181980)

<div class="topic-metadata">

**Author:** [@Bug](https://community.sonarsource.com/u/Bug)\
**Replies:** 8\
**Last updated:** [August 21, 2026, 2:47pm UTC](https://community.sonarsource.com/t/sonar-multimodule-with-coverage-logging-file-filename-not-found-in-project-sources/181980 "2026-08-21T14:47:07Z")

</div>

Versions SonarQube Server Enterprise Edition v2026.2.1 (121354) Plugin version: 7.2.3.7755 jacoco packaged with gradle 9.4.1 Relevant config: tasks.register("codeCoverageReport", JacocoReport) { subprojects { sub…

---

## [SonarResolverTask loses task dependencies from standard Java classpaths](https://community.sonarsource.com/t/sonarresolvertask-loses-task-dependencies-from-standard-java-classpaths/187466)

<div class="topic-metadata">

**Author:** [@janeklb](https://community.sonarsource.com/u/janeklb)\
**Replies:** 1\
**Last updated:** [August 20, 2026, 3:43pm UTC](https://community.sonarsource.com/t/sonarresolvertask-loses-task-dependencies-from-standard-java-classpaths/187466 "2026-08-20T15:43:12Z")

</div>

Environment SonarScanner for Gradle: 7.4.0.8496 SonarScanner for Gradle: 7.3.1.8318 (passes) Gradle: 8.14.5 Java: Temurin 21.0.12 A standard single-project Java build Minimal reproduction settings.gradle: rootProject.…

---

## [A problem was found with the configuration of task ':sonarResolver' (since 7.0.0.6105)](https://community.sonarsource.com/t/a-problem-was-found-with-the-configuration-of-task-sonarresolver-since-7-0-0-6105/151184)

<div class="topic-metadata">

**Author:** [@BrianRUG](https://community.sonarsource.com/u/BrianRUG)\
**Replies:** 2\
**Last updated:** [October 22, 2025, 2:38pm UTC](https://community.sonarsource.com/t/a-problem-was-found-with-the-configuration-of-task-sonarresolver-since-7-0-0-6105/151184 "2025-10-22T14:38:26Z")

</div>

When both Jandex and SonarQube Gradle Plugins are present in the same project, it results in: A problem was found with the configuration of task ':sonarResolver' (type 'BuildFeaturesEnabledResolverTask'). - Gradle det…

---

## [Configuration cache and new Gradle features adoption cadence](https://community.sonarsource.com/t/configuration-cache-and-new-gradle-features-adoption-cadence/182078)

<div class="topic-metadata">

**Author:** [@JavierSC](https://community.sonarsource.com/u/JavierSC)\
**Replies:** 1\
**Last updated:** [July 30, 2026, 1:33pm UTC](https://community.sonarsource.com/t/configuration-cache-and-new-gradle-features-adoption-cadence/182078 "2026-07-30T13:33:01Z")

</div>

Hello there! I don’t want this to come across as rude, but the Sonar Gradle plugin feels significantly behind the Gradle ecosystem. It honestly seems disconnected from Gradle’s evolution pace — even considering how slow…

---

## [Sonar scanner gradle 7.3.0 - ClassNotFoundException: nl.altindag.sude.LoggerFactory](https://community.sonarsource.com/t/sonar-scanner-gradle-7-3-0-classnotfoundexception-nl-altindag-sude-loggerfactory/182633)

<div class="topic-metadata">

**Author:** [@Karda](https://community.sonarsource.com/u/Karda)\
**Replies:** 6\
**Last updated:** [June 26, 2026, 11:34am UTC](https://community.sonarsource.com/t/sonar-scanner-gradle-7-3-0-classnotfoundexception-nl-altindag-sude-loggerfactory/182633 "2026-06-26T11:34:33Z")

</div>

When running the :sonar task with the Gradle plugin org.sonarqube:7.3.0, the build fails with a ClassNotFoundException for nl.altindag.sude.LoggerFactory. Stack trace Caused by: java.lang.NoClassDefFoundError: nl/altind…

---

## [SonarScanner for Gradle does not support the Configuration Cache](https://community.sonarsource.com/t/sonarscanner-for-gradle-does-not-support-the-configuration-cache/145833)

<div class="topic-metadata">

**Author:** [@rkrisztian](https://community.sonarsource.com/u/rkrisztian)\
**Replies:** 5\
**Last updated:** [June 16, 2026, 5:53pm UTC](https://community.sonarsource.com/t/sonarscanner-for-gradle-does-not-support-the-configuration-cache/145833 "2026-06-16T17:53:04Z")

</div>

This issue is somewhat related to the following issues, but not the same: Sonar Plugin fails when configuration cache is enabled Sonar Plugin fails when configuration cache is enabled Gradle run fails with configura…

---

## [SonarScanner for Gradle 7.3.1](https://community.sonarsource.com/t/sonarscanner-for-gradle-7-3-1/183205)

<div class="topic-metadata">

**Author:** [@aurelien.coet](https://community.sonarsource.com/u/aurelien.coet)\
**Replies:** 3\
**Last updated:** [June 9, 2026, 6:58am UTC](https://community.sonarsource.com/t/sonarscanner-for-gradle-7-3-1/183205 "2026-06-09T06:58:41Z")

</div>

We are pleased to announce the release of the Sonar scanner for Gradle 7.3.1. This patch version addresses key issues encountered by users running the scanner alongside the Android Gradle Plugin 9. Specifically, this re…

---

## [Pull request decoration missing](https://community.sonarsource.com/t/pull-request-decoration-missing/182942)

<div class="topic-metadata">

**Author:** [@rufer7](https://community.sonarsource.com/u/rufer7)\
**Replies:** 9\
**Last updated:** [June 4, 2026, 11:49am UTC](https://community.sonarsource.com/t/pull-request-decoration-missing/182942 "2026-06-04T11:49:14Z")

</div>

ALM used: GitHub Languages of the repository: java GitHub - rufer7/cas-ssdd-2026-project: Project for CAS Secure Software Design & Development at ZHAW School of Engineering · GitHub PR decorations are missing. I follow…

---

## [\[Bug report gradle plugin\] SonarResolver crashes when enabling Licensee bundleAndroidAsset](https://community.sonarsource.com/t/bug-report-gradle-plugin-sonarresolver-crashes-when-enabling-licensee-bundleandroidasset/182387)

<div class="topic-metadata">

**Author:** [@rvp-diconium](https://community.sonarsource.com/u/rvp-diconium)\
**Replies:** 2\
**Last updated:** [June 4, 2026, 9:56am UTC](https://community.sonarsource.com/t/bug-report-gradle-plugin-sonarresolver-crashes-when-enabling-licensee-bundleandroidasset/182387 "2026-06-04T09:56:48Z")

</div>

This is a bug report on Sonarqube Gradle plugin. I’m not sure this forum is the right place to send bug reports. I first tried to find an “issues” tab on GitHub - SonarSource/sonar-scanner-gradle: SonarQube Scanner for …

---

## [SonarScanner for Gradle 7.3 fails with AGP 9 task-backed generated sources / KSP](https://community.sonarsource.com/t/sonarscanner-for-gradle-7-3-fails-with-agp-9-task-backed-generated-sources-ksp/182015)

<div class="topic-metadata">

**Author:** [@matamegger](https://community.sonarsource.com/u/matamegger)\
**Replies:** 3\
**Last updated:** [June 3, 2026, 2:28pm UTC](https://community.sonarsource.com/t/sonarscanner-for-gradle-7-3-fails-with-agp-9-task-backed-generated-sources-ksp/182015 "2026-06-03T14:28:14Z")

</div>

Hi Sonar team, we are migrating an Android Gradle project to AGP 9 and hit a blocker with SonarScanner for Gradle 7.3.0.8198. The build fails during sonarResolver, before the actual SonarCloud analysis/upload starts. T…

---

## [SonarScanner for Gradle 7.3.0](https://community.sonarsource.com/t/sonarscanner-for-gradle-7-3-0/181881)

<div class="topic-metadata">

**Author:** [@aurelien.coet](https://community.sonarsource.com/u/aurelien.coet)\
**Replies:** 3\
**Last updated:** [June 2, 2026, 6:34am UTC](https://community.sonarsource.com/t/sonarscanner-for-gradle-7-3-0/181881 "2026-06-02T06:34:11Z")

</div>

We are pleased to announce the release of the Sonar scanner for Gradle 7.3, now supporting Android Gradle Plugin version 9. The release also fixes some issues that were present in previous versions of the scanner and mo…

---

## [Sonar-scanner-gradle 7.3.0: Incorrect sonar.java.binaries](https://community.sonarsource.com/t/sonar-scanner-gradle-7-3-0-incorrect-sonar-java-binaries/182043)

<div class="topic-metadata">

**Author:** [@julioyg](https://community.sonarsource.com/u/julioyg)\
**Replies:** 4\
**Last updated:** [May 27, 2026, 3:53pm UTC](https://community.sonarsource.com/t/sonar-scanner-gradle-7-3-0-incorrect-sonar-java-binaries/182043 "2026-05-27T15:53:57Z")

</div>

Environment sonar-scanner-gradle: 7.3.0.8198 Android Gradle Plugin: 9.1.1 Gradle: 9.4.1 Description The new AndroidConfig.java class (introduced in SCANGRADLE-315 / PR #493 for AGP 9 support) hardcodes an incorrect pat…

---

## [Sonarcloud not working with Android Gradle Plugin 9.1.0](https://community.sonarsource.com/t/sonarcloud-not-working-with-android-gradle-plugin-9-1-0/178883)

<div class="topic-metadata">

**Author:** [@Barry\_Irvine](https://community.sonarsource.com/u/Barry_Irvine)\
**Replies:** 8\
**Last updated:** [May 6, 2026, 10:43am UTC](https://community.sonarsource.com/t/sonarcloud-not-working-with-android-gradle-plugin-9-1-0/178883 "2026-05-06T10:43:23Z")

</div>

Android Gradle plugin fails SonarQube version: 7.2.3.7755 Android Gradle Plugin version: 9.1.0 When upgrading to Android Gradle Plugin 9.1.0 we can no longer execute: ./gradlew sonar on the command-line because it fa…

---

## [SonarQube Gradle Plugin 7.2.2.6593 creates empty sonar-resolver folders in gradle build folder](https://community.sonarsource.com/t/sonarqube-gradle-plugin-7-2-2-6593-creates-empty-sonar-resolver-folders-in-gradle-build-folder/177238)

<div class="topic-metadata">

**Author:** [@pschwarzer-tt](https://community.sonarsource.com/u/pschwarzer-tt)\
**Replies:** 4\
**Last updated:** [April 30, 2026, 9:53am UTC](https://community.sonarsource.com/t/sonarqube-gradle-plugin-7-2-2-6593-creates-empty-sonar-resolver-folders-in-gradle-build-folder/177238 "2026-04-30T09:53:23Z")

</div>

After updating the Sonar Gradle plugin from 6.2.0.5505 to 7.2.2.6593 we see a lot of empty sonar-resolver folders in our gradle build directories. It looks like the SonarQubePlugin:registerAndConfigureResolverTasks meth…

---

## [Sonar Gradle Plugin crashes on AGP 9: 'AppExtension' does not exist for :app:sonarResolver task](https://community.sonarsource.com/t/sonar-gradle-plugin-crashes-on-agp-9-appextension-does-not-exist-for-sonarresolver-task/172694)

<div class="topic-metadata">

**Author:** [@michael-winkler](https://community.sonarsource.com/u/michael-winkler)\
**Replies:** 9\
**Last updated:** [April 30, 2026, 9:10am UTC](https://community.sonarsource.com/t/sonar-gradle-plugin-crashes-on-agp-9-appextension-does-not-exist-for-sonarresolver-task/172694 "2026-04-30T09:10:12Z")

</div>

Could not determine the dependencies of task ‘:sonar’. Could not create task ‘:app:sonarResolver’. Extension of type ‘AppExtension’ does not exist. Currently registered extension types: \[ExtraPropertiesExtension, Sona…

---

## [Working towards the support of Android Gradle Plugin 9](https://community.sonarsource.com/t/working-towards-the-support-of-android-gradle-plugin-9/177015)

<div class="topic-metadata">

**Author:** [@Dorian\_Burihabwa](https://community.sonarsource.com/u/Dorian_Burihabwa)\
**Replies:** 8\
**Last updated:** [April 30, 2026, 9:09am UTC](https://community.sonarsource.com/t/working-towards-the-support-of-android-gradle-plugin-9/177015 "2026-04-30T09:09:03Z")

</div>

Hey folks, With the release Android Gradle Plugin 9, we assume most of you will be migrating to the newest version of AGP very soon. However, as some of you have attempted to do so, we have been made aware of conflicts …

---

## [Migrate to Gradle 9 cause Sonar error during task execution](https://community.sonarsource.com/t/migrate-to-gradle-9-cause-sonar-error-during-task-execution/181655)

<div class="topic-metadata">

**Author:** [@JULIEN\_DUMONT](https://community.sonarsource.com/u/JULIEN_DUMONT)\
**Replies:** 3\
**Last updated:** [April 28, 2026, 12:29pm UTC](https://community.sonarsource.com/t/migrate-to-gradle-9-cause-sonar-error-during-task-execution/181655 "2026-04-28T12:29:56Z")

</div>

Hi dear community, I try to migrate my project to gradle 9. I have tried several versions of the sonar plugin : 6.2.0.5505 (Version that worked before the migration) 7.2.3.7755 (The last one) But with thoses t…

---

## [Securely analyzing PRs from forks in GitHub Actions without exposing SONAR\_TOKEN](https://community.sonarsource.com/t/securely-analyzing-prs-from-forks-in-github-actions-without-exposing-sonar-token/180838)

<div class="topic-metadata">

**Author:** [@yvasyliev](https://community.sonarsource.com/u/yvasyliev)\
**Replies:** 0\
**Last updated:** [April 7, 2026, 9:13am UTC](https://community.sonarsource.com/t/securely-analyzing-prs-from-forks-in-github-actions-without-exposing-sonar-token/180838 "2026-04-07T09:13:16Z")

</div>

I am looking for the recommended “best practice” for performing SonarCloud scans on Java/Gradle Pull Requests originating from forked repositories in a public GitHub repo. The Challenge GitHub restricts secrets access f…

---

## [Sonarqube For Android with AGP 8.5](https://community.sonarsource.com/t/sonarqube-for-android-with-agp-8-5/136188)

<div class="topic-metadata">

**Author:** [@Kavi](https://community.sonarsource.com/u/Kavi)\
**Replies:** 7\
**Last updated:** [March 11, 2026, 1:18pm UTC](https://community.sonarsource.com/t/sonarqube-for-android-with-agp-8-5/136188 "2026-03-11T13:18:37Z")

</div>

I am trying to Run Sonarqube on my Android project with runs on AGP 8.5 My Sonar Version is 6.0.1.5171 ./gradlew sonarqube Returns the below exception What went wrong: com/android/build/gradle/api/BaseVariant com…

---

## [Sonar Gradle Plugin v7.2.+ not supporting wildcards in path](https://community.sonarsource.com/t/sonar-gradle-plugin-v7-2-not-supporting-wildcards-in-path/153827)

<div class="topic-metadata">

**Author:** [@Tyrannoseanus](https://community.sonarsource.com/u/Tyrannoseanus)\
**Replies:** 7\
**Last updated:** [March 6, 2026, 7:22am UTC](https://community.sonarsource.com/t/sonar-gradle-plugin-v7-2-not-supporting-wildcards-in-path/153827 "2026-03-06T07:22:39Z")

</div>

Hi :waving\_hand: I’ve just upgraded my Sonar Gradle plugin and the behaviour has changed and I’m not sure how to get it to work, or whether this is a bug. which versions are you using (SonarQube Server / Community Bui…

---

## [Frontend Languages no longer detected with sonar-scanner-gradle 7.2.x](https://community.sonarsource.com/t/frontend-languages-no-longer-detected-with-sonar-scanner-gradle-7-2-x/172222)

<div class="topic-metadata">

**Author:** [@BendixPetersen](https://community.sonarsource.com/u/BendixPetersen)\
**Replies:** 10\
**Last updated:** [March 5, 2026, 1:19pm UTC](https://community.sonarsource.com/t/frontend-languages-no-longer-detected-with-sonar-scanner-gradle-7-2-x/172222 "2026-03-05T13:19:47Z")

</div>

Since updating to version 7.2 of sonar-scanner-gradle we no longer get any analysis of our frontend files. We use a multi-module repo with mainly kotlin and typescript code. The typescript files are no longer detected af…

---

## [Gradle and lazy configurations](https://community.sonarsource.com/t/gradle-and-lazy-configurations/91185)

<div class="topic-metadata">

**Author:** [@JavierSC](https://community.sonarsource.com/u/JavierSC)\
**Replies:** 12\
**Last updated:** [February 23, 2026, 5:11pm UTC](https://community.sonarsource.com/t/gradle-and-lazy-configurations/91185 "2026-02-23T17:11:32Z")

</div>

Currently, the properties configuration is not using lazy APIs, so the configuration phase time will be slower and it can have order issues. For example: properties.property("sonar.sources", project.kotlinSrcDirs.get())…

---

## [:app:sonarResolver failed to resolve files for :app:compileClasspath for sub module](https://community.sonarsource.com/t/sonarresolver-failed-to-resolve-files-for-compileclasspath-for-sub-module/177918)

<div class="topic-metadata">

**Author:** [@kalpeshp](https://community.sonarsource.com/u/kalpeshp)\
**Replies:** 1\
**Last updated:** [February 18, 2026, 1:34pm UTC](https://community.sonarsource.com/t/sonarresolver-failed-to-resolve-files-for-compileclasspath-for-sub-module/177918 "2026-02-18T13:34:07Z")

</div>

Getting below error after upgrading sonar plugin version from 4.4.1.3373 to 7.2.2.6593. Execution failed for task ':app:sonarResolver'. \> Could not resolve all files for configuration ':app:compileClasspath'. \> Could …

---

## [\*\*DO NOT UPRGRADE TO\*\* SonarScanner for Gradle 7.2](https://community.sonarsource.com/t/do-not-uprgrade-to-sonarscanner-for-gradle-7-2/153496)

<div class="topic-metadata">

**Author:** [@romain.brenguier](https://community.sonarsource.com/u/romain.brenguier)\
**Replies:** 4\
**Last updated:** [January 27, 2026, 3:46pm UTC](https://community.sonarsource.com/t/do-not-uprgrade-to-sonarscanner-for-gradle-7-2/153496 "2026-01-27T15:46:29Z")

</div>

EDIT \[2026-07-09\]: We discovered an issue with version 7.2.0, 7.2.1 and 7.2.2 of the scanner and recommend that you keep your project on or downgrade to version 7.1.0.6387. See this post for further details. We are pl…

---

## [SonarQube Gradle Plugin 7.2.2.6593 has no data for NPM](https://community.sonarsource.com/t/sonarqube-gradle-plugin-7-2-2-6593-has-no-data-for-npm/172574)

<div class="topic-metadata">

**Author:** [@Adam\_Jankovec](https://community.sonarsource.com/u/Adam_Jankovec)\
**Replies:** 1\
**Last updated:** [January 20, 2026, 4:15pm UTC](https://community.sonarsource.com/t/sonarqube-gradle-plugin-7-2-2-6593-has-no-data-for-npm/172574 "2026-01-20T16:15:22Z")

</div>

Hi, update of SonarQube Gradle plugin from 7.1.0.6387 to 7.2.0.6526 broke npm projects for us completely - no coverage, no issues, no duplicates. Even the latest version 7.2.2.6593 is still broken. 7.1.0.6387 is the las…

---

## [Sonar gradle scanner fails with exception NoClassDefFoundError: okhttp3/internal/Util](https://community.sonarsource.com/t/sonar-gradle-scanner-fails-with-exception-noclassdeffounderror-okhttp3-internal-util/138027)

<div class="topic-metadata">

**Author:** [@Cornel\_Gligan](https://community.sonarsource.com/u/Cornel_Gligan)\
**Replies:** 21\
**Last updated:** [January 19, 2026, 10:40am UTC](https://community.sonarsource.com/t/sonar-gradle-scanner-fails-with-exception-noclassdeffounderror-okhttp3-internal-util/138027 "2026-01-19T10:40:30Z")

</div>

Hello, Starting with sonar gradle plugin v. 6.0.0.5145 when run sonar scan command, on an Android project, the sonar task fails with following cause: “java.lang.NoClassDefFoundError: okhttp3/internal/Util”. The scan fa…

---

## [How to provide compiled Java classes with sonar.java.binaries property using the Sonar Gradle Plugin](https://community.sonarsource.com/t/how-to-provide-compiled-java-classes-with-sonar-java-binaries-property-using-the-sonar-gradle-plugin/141596)

<div class="topic-metadata">

**Author:** [@BerkayMutlu](https://community.sonarsource.com/u/BerkayMutlu)\
**Replies:** 5\
**Last updated:** [November 24, 2025, 1:46pm UTC](https://community.sonarsource.com/t/how-to-provide-compiled-java-classes-with-sonar-java-binaries-property-using-the-sonar-gradle-plugin/141596 "2025-11-24T13:46:51Z")

</div>

Hello, we are adding Sonar to our Android project. We use Sonar Gradle Plugin (version 6.2.0.5505). Some modules in our project have Java classes. When we run the “sonar” task we get this error: org.sonar.java.AnalysisE…

---

## [Error when running sonar task with Gradle 9.0.0-rc-1](https://community.sonarsource.com/t/error-when-running-sonar-task-with-gradle-9-0-0-rc-1/143857)

<div class="topic-metadata">

**Author:** [@G00fY2](https://community.sonarsource.com/u/G00fY2)\
**Replies:** 26\
**Last updated:** [November 24, 2025, 11:48am UTC](https://community.sonarsource.com/t/error-when-running-sonar-task-with-gradle-9-0-0-rc-1/143857 "2025-11-24T11:48:04Z")

</div>

Currently we prepare the migration to Gradle 9. Our whole Android project build and pipeline is working so far. But we get the following error when running sonar Gradle task: \[2025-07-03T14:42:18.387Z\] \> Task :sonar FAI…

[Next page](https://community.sonarsource.com/tag/gradle/29.md?match_all_tags=true&page=1&tags%5B%5D=gradle)
