# Intellij-platform-plugin-template in java

**URL:** <https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199>\
**Category:** IntelliJ Platform\
**Created:** [October 5, 2026, 1:50pm UTC](https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199 "2026-10-05T13:50:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [October 5, 2026, 1:50pm UTC](https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199/1 "2026-10-05T13:50:26Z")

</div>

Hi, I just migrated a project from Gradle 9.7.1 to 9.8.0, and I’m facing some problems. So, I managed to reproduce them in the intellij-platform-plugin-template project. I will start with the first one:

- checkout intellij-platform-plugin-template and migrate it to Java, or, download [https://www.extratoolspack.com/tmp2/intellij-platform-plugin-template-java.zip](https://www.extratoolspack.com/tmp2/intellij-platform-plugin-template-java.zip) directly
- open the project in your IDE

You can build the project from the command line or from the IDE, it works well, but the `build.gradle.kts` file has some problem when displayed in the editor:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/2X/2/287b0026ec983d377e315571667db729be4e1fef.png)

Do you know how to fix that? Thx.

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [October 5, 2026, 2:01pm UTC](https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199/2 "2026-10-05T14:01:20Z")

</div>

Hum, I restarted my IDE, reloaded my gradle project, and cleared the indexes several times, without success.  
And you know what happened: the problem was resolved right after I started this thread. 🫩

So, let’s go to problem number two:

just after testFramework…, add this new line

```auto
bundledModule("intellij.platform.vcs.impl")

```

and add ` <depends>com.intellij.modules.vcs</depends>` in the plugin.xml.

The project can still compile, but the IDE no longer recognizes IntelliJ’s classes in Java code:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/2X/c/c96ed26ce07696d78ef3c25fbcee87d38c310f9e.png)

And if you look at the project modules:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/2X/a/a3d8b095eb4391e62245421d9d480ba68eb24392.png)

something is missing: the IDE’s classes.

Without the bundled plugin, they’re back:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/2X/b/b8ca40883aa42c19a84b677a07633eb0c76058aa.png)

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [October 5, 2026, 4:59pm UTC](https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199/4 "2026-10-05T16:59:35Z")

</div>

If I downgrade the Gradle wrapper to 9.7.1, everything work fine, even in the editor.

So, it’s like the ij platform plugin template (or the platform gradle plugin, or the IDE) has a problem with Gradle 9.8.0 when sources are Java and not Kotlin.

@jakub.chrzanowski do you think I should open a Youtrack issue directly?

---

<div class="post-metadata">

**Author:** ![yuriy.artamonov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yuriy.artamonov/32/48_2.png) [@yuriy.artamonov](https://platform.jetbrains.com/u/yuriy.artamonov)\
**Post date:** [October 5, 2026, 6:28pm UTC](https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199/5 "2026-10-05T18:28:29Z")

</div>

In general, Java code should work by simply adding the Java Gradle plugin and using `src/main/java` as the source root. Nothing special should be required.

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [October 5, 2026, 7:24pm UTC](https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199/6 "2026-10-05T19:24:40Z")

</div>

Thx. I reintroduced the `org.jetbrains.kotlin.jvm` plugin, and everything seems to work. But, I have no idea why this plugin is needed in my situation, and why it was not needed when using gradle 9.7.1 and older versions.

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [October 8, 2026, 1:42pm UTC](https://platform.jetbrains.com/t/intellij-platform-plugin-template-in-java/5199/8 "2026-10-08T13:42:39Z")

</div>

It seems to be a bug: [Unresolved bundled dependencies in Java-only projects with Gradle 9.8.0 · Issue #2262 · JetBrains/intellij-platform-gradle-plugin · GitHub](https://github.com/JetBrains/intellij-platform-gradle-plugin/issues/2262)
