I’m targeting 262-EAP-SNAPSHOT with the 2.17.0 gradle plugin. It appears that some ij platform classes are compiled with JDK 25, but the gradle plugin uses JDK 21 to compile. This results in errors such as:
import com.intellij.refactoring.util.RefactoringUtil;
^
bad class file: (/com/intellij/refactoring/util/RefactoringUtil.class)
class file has wrong version 69.0, should be 65.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
If I change my build.gradle.kts to use a JDK 25 toolchain, the gradle plugin appears to set --release 21, which prevents my plugin’s use of jdk.compiler classes such as com.sun.tools.javac.code.Flags.
261-EAP-SNAPSHOT with gradle plugin 2.15.0 works as expected.