Intellij-platform-plugin-template in java

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:

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:

Do you know how to fix that? Thx.

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. :face_with_bags_under_eyes:

So, let’s go to problem number two:

just after testFramework…, add this new line

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:

And if you look at the project modules:

something is missing: the IDE’s classes.

Without the bundled plugin, they’re back:

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?

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.

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.

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