# Error when building the plugin: "Failed to read bundled plugin plugins/cwm-plugin"

**URL:** <https://platform.jetbrains.com/t/error-when-building-the-plugin-failed-to-read-bundled-plugin-plugins-cwm-plugin/369>\
**Category:** Gradle Build Scripts\
**Created:** [February 11, 2025, 10:40am UTC](https://platform.jetbrains.com/t/error-when-building-the-plugin-failed-to-read-bundled-plugin-plugins-cwm-plugin/369 "2025-02-11T10:40:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergei.petunin](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/sergei.petunin/32/106_2.png) [@sergei.petunin](https://platform.jetbrains.com/u/sergei.petunin)\
**Post date:** [February 11, 2025, 10:40am UTC](https://platform.jetbrains.com/t/error-when-building-the-plugin-failed-to-read-bundled-plugin-plugins-cwm-plugin/369/1 "2025-02-11T10:40:19Z")

</div>

| Tool | Version |
| --- | --- |
| Gradle | 8.12.1 |
| IntelliJ Platform Gradle Plugin | 2.2.1 |

Reposting this from the Slack channel, since I didn’t get an answer, unfortunately 😕

I can’t upgrade from plugin 2.1.0 to 2.2.x due to the following error, reproduced also on the plugin template:

- clone the template [GitHub - JetBrains/intellij-platform-plugin-template: Template repository for creating plugins for IntelliJ Platform](https://github.com/JetBrains/intellij-platform-plugin-template/tree/main);
- update `intelliJPlatform = "2.2.1"` in `gradle/libs.versions.toml` ;
- add `bundledPlugin("com.jetbrains.codeWithMe")` to the `dependencies.intellijPlatform {}` section.
- execute `./gradlew instrumentCode`
- get an error:

> Failed to read bundled plugin ‘plugins/cwm-plugin’: Plugin ‘plugins/cwm-plugin’ is invalid: Invalid plugin descriptor ‘plugin.xml’. The parameter [2023300] and the plugin version [233.15619.7] should have a matching beginning. For example, release version ‘20201’ should match plugin version 2020.1.1

Works fine when switching back to 2.1.0.

---

<div class="post-metadata">

**Author:** ![sergei.petunin](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/sergei.petunin/32/106_2.png) [@sergei.petunin](https://platform.jetbrains.com/u/sergei.petunin)\
**Post date:** [February 28, 2025, 6:49am UTC](https://platform.jetbrains.com/t/error-when-building-the-plugin-failed-to-read-bundled-plugin-plugins-cwm-plugin/369/3 "2025-02-28T06:49:03Z")

</div>

I tried the recent plugin version 2.3.0, and the error has gone away, so I’ve migrated successfully. Thanks!

---

<div class="post-metadata">

**Author:** ![jakub.chrzanowski](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/jakub.chrzanowski/32/38_2.png) [@jakub.chrzanowski](https://platform.jetbrains.com/u/jakub.chrzanowski)\
**Post date:** [February 28, 2025, 7:00pm UTC](https://platform.jetbrains.com/t/error-when-building-the-plugin-failed-to-read-bundled-plugin-plugins-cwm-plugin/369/4 "2025-02-28T19:00:17Z")

</div>

@sergei.petunin Thank you for the confirmation!
