Unable to build plugin for 2022.2 after updating settings.gradle

Answered

2022.2 came out today and I need to update my plugin. After changing

platformVersion = 2022.2

in my gradle.properties, and updating the version of my plugin via pluginVersion, when I try to build I hit:

> Task :buildSearchableOptions FAILED
[gradle-intellij-plugin :athena-jetbrains:buildSearchableOptions] Cannot find java executable in: /Users/majones/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr-17.0.3-osx-x64-b469.32/extracted
[gradle-intellij-plugin] Cannot resolve builtin JetBrains Runtime '17.0.3b469.32'. Falling local Java Runtime.

Start Failed
!bootstrap.error.message.internal.error.please.refer.to.0!https://jb.gg/ide/critical-startup-errors!

java.lang.NoClassDefFoundError: com/intellij/openapi/util/SystemInfoRt
at com.intellij.openapi.application.PathManager.getBinDirectories(PathManager.java:175)
at com.intellij.openapi.application.PathManager.isIdeaHome(PathManager.java:163)
at com.intellij.openapi.application.PathManager.getHomeDirFor(PathManager.java:156)
at com.intellij.openapi.application.PathManager.getHomePathFor(PathManager.java:146)
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:95)
at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:540)
at com.intellij.idea.Main.bootstrap(Main.java:91)
at com.intellij.idea.Main.main(Main.java:81)
Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.util.SystemInfoRt
Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.util.SystemInfoRt

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 8 more

-----
!bootstrap.error.message.jre.details!11.0.14.1+10-LTS x86_64 (Amazon.com Inc.)
/Users/majones/Library/Java/JavaVirtualMachines/corretto-11.0.14.1/Contents/Home!

Execution failed for task ':buildSearchableOptions'.
> Process 'command '/Users/majones/Library/Java/JavaVirtualMachines/corretto-11.0.14.1/Contents/Home/bin/java'' finished with non-zero exit value 3

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

1 comment
Comment actions Permalink

nevermind, updating to 1.7.0 of the gradle plugin resolved it.

2

Please sign in to leave a comment.