# Execution failed for task ':sonar'

**URL:** <https://community.sonarsource.com/t/execution-failed-for-task-sonar/147683>\
**Category:** SonarQube Cloud\
**Tags:** kotlin, scanner\
**Created:** [August 29, 2025, 12:03pm UTC](https://community.sonarsource.com/t/execution-failed-for-task-sonar/147683 "2025-08-29T12:03:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pkagebein](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@Pkagebein](https://community.sonarsource.com/u/Pkagebein)\
**Post date:** [August 29, 2025, 12:03pm UTC](https://community.sonarsource.com/t/execution-failed-for-task-sonar/147683/1 "2025-08-29T12:03:44Z")

</div>

I am currently working on upgrading a Kotlin Multiplatform project from Gradle `8.11.0` to `9.0.0`. With the change to `9.0.0`, I had to upgrade our sonar plugin version from `5.1.0.4882` to the latest version, `6.3.1.5724`, as the 5.1 version was using a method that is no [longer supported](https://docs.gradle.org/8.2/userguide/upgrading_version_8.html#deprecated_access_to_conventions) by Gradle 9.

With the bump to the latest plugin version, I am seeing the following error when the `:sonar` task runs in a CI/CD workflow:

```auto
Execution failed for task ':sonar'.
> 'org.apache.commons.compress.archivers.tar.TarArchiveEntry org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry()'  

```

It looks like this has been an issue in the past: [Execution failed for task ':app:sonar' - #4 by razortw](https://community.sonarsource.com/t/execution-failed-for-task-sonar/136857/4)

The only suggestion to fix the issue, was to downgrade to the `5.1.0.4882` version. I cannot do this however, as that version isn’t compatible with Gradle 9 like I mentioned.

Has there been any other resolution to this issue?

---

<div class="post-metadata">

**Author:** ![Pkagebein](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@Pkagebein](https://community.sonarsource.com/u/Pkagebein)\
**Post date:** [August 29, 2025, 12:42pm UTC](https://community.sonarsource.com/t/execution-failed-for-task-sonar/147683/2 "2025-08-29T12:42:00Z")

</div>

It seems like adding  
`skipJreProvisioning=true`  
to the Gradle task config resolved the issue

---

<div class="post-metadata">

**Author:** ![OscarSpruit](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/oscarspruit/32/72783_2.png) [@OscarSpruit](https://community.sonarsource.com/u/OscarSpruit)\
**Post date:** [October 6, 2025, 4:04pm UTC](https://community.sonarsource.com/t/execution-failed-for-task-sonar/147683/3 "2025-10-06T16:04:57Z")

</div>

We are also seeing this issue. However, adding `skipJreProvisioning=true` does not fix it for us. It is also not possible for us to downgrade the plugin to 5.x.

We also tried to add an explicit dependency on `org.apache.commons:commons-compress:1.27.0`. However, this also does not work.

Any other ideas on how to fix this?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 6, 2025, 6:01pm UTC](https://community.sonarsource.com/t/execution-failed-for-task-sonar/147683/4 "2025-10-06T18:01:11Z")

</div>

Hi @OscarSpruit,

Would you mind creating a new thread for this is with all your details, please?

&nbsp;  
Thx,  
Ann
