Hi, I want to locally run my plugin in K1 mode on the new IntelliJ IDEA 2025.1 EAP 5 version ( build 251.21418.62). To do this, I add the property-Didea.kotlin.plugin.use.k2=false in builg.gradle.kts, but K1 mode does not get enabled.
Thanks for reporting, @Nikita_Iarychenko!
I have reproduced this issue with the IntelliJ Platform version you provided; indeed, something was wrong.
However, when checking it against the 251-EAP-SNAPSHOT, the issue seems to be gone, and the k2 mode is successfully disabled. It looks like this was an issue on the IntelliJ Platform side, but it’s already been addressed.
@m.sciachero Thanks for asking! IntelliJ Platform Gradle Plugin uses “argument providers” to lazily evaluate some values and apply them to the JavaExec process that runs the IDE, tests, etc.
The systemProperty does the same but eagerly and may eventually get replaced with the values that providers apply on the top. Use the jvmArgumentProviders whenever possible.