I’m trying to update Jmix framework version to 1.3.5. after update Jmix Plugin to version 1.3.9-213, and got error “Unsupported gradle.build file: build.gradle”.
Please, help me to fix it.
Stacktrace:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.haulmont.jmixstudio.intellij.util.SApplicationExUtils.runWriteActionWithProgressInDispatchThread(SApplicationExUtils.java:62)
at com.haulmont.jmixstudio.intellij.util.SApplicationExUtils.runWriteActionWithNonCancellableProgressInDispatchThread(SApplicationExUtils.java:37)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog.doApplyAndClose(JmixProjectPropertiesDialog.kt:156)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog.access$doApplyAndClose(JmixProjectPropertiesDialog.kt:35)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog$migrateApplyAndClose$onSuccess$1.run(JmixProjectPropertiesDialog.kt:144)
at com.haulmont.jmixstudio.intellij.ui.pm.MigrationProcessor.performMigration(MigrationProcessor.java:90)
at com.haulmont.jmixstudio.intellij.ui.pm.MigrationProcessor.migrate(MigrationProcessor.java:60)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog.migrateApplyAndClose(JmixProjectPropertiesDialog.kt:149)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog.doOKAction(JmixProjectPropertiesDialog.kt:134)
at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:1857)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog$createDefaultActions$1.doAction(JmixProjectPropertiesDialog.kt:113)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1811)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6648)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3392)
at java.desktop/java.awt.Component.processEvent(Component.java:6413)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5022)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2802)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:754)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:752)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:751)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:840)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:763)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)
at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:712)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:453)
at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1672)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1630)
at com.haulmont.jmixstudio.intellij.notify.NewJmixVersionNotification$OpenProjectProperties.actionPerformed(NewJmixVersionNotification.kt:74)
at com.intellij.notification.NotificationAction.actionPerformed(NotificationAction.java:33)
at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:315)
at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:294)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:337)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:294)
at com.intellij.openapi.fileEditor.impl.IdeUiServiceImpl.performActionDumbAwareWithCallbacks(IdeUiServiceImpl.java:109)
at com.intellij.notification.Notification.fire(Notification.java:288)
at com.intellij.notification.impl.NotificationsManagerImpl.lambda$createAction$11(NotificationsManagerImpl.java:841)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:174)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:388)
at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:361)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6648)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3392)
at java.desktop/java.awt.Component.processEvent(Component.java:6413)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5022)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2802)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:754)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:752)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:751)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:840)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:763)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.haulmont.jmixstudio.intellij.util.SApplicationExUtils.runWriteActionWithProgressInDispatchThread(SApplicationExUtils.java:60)
... 117 more
Caused by: java.lang.IllegalStateException
at com.haulmont.jmixstudio.buildsystem.gradle.GradleHelper$Companion.getInstance(GradleHelper.kt:27)
at com.haulmont.jmixstudio.buildsystem.gradle.GradleProjectWriter.writeBomVersion(GradleProjectWriter.kt:80)
at com.haulmont.jmixstudio.buildsystem.gradle.GradleProjectWriter.writeBomVersion(GradleProjectWriter.kt:21)
at com.haulmont.jmixstudio.backend.JmixProjectModuleMutableModel.setBomVersion(JmixProjectModule.kt:420)
at com.haulmont.jmixstudio.backend.JmixProjectModuleMutableModel.setJmixVersion(JmixProjectModule.kt:428)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesPanel$commitJmixBomVersion$1.invoke(JmixProjectPropertiesPanel.kt:168)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesPanel$commitJmixBomVersion$1.invoke(JmixProjectPropertiesPanel.kt:38)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.SingleProjectModule$modify$1.invoke(JmixProjectModuleWrapper.kt:41)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.SingleProjectModule$modify$1.invoke(JmixProjectModuleWrapper.kt:26)
at com.haulmont.jmixstudio.backend.JmixProjectModule$modify$1.invoke(JmixProjectModule.kt:163)
at com.haulmont.jmixstudio.backend.JmixProjectModule$modify$1.invoke(JmixProjectModule.kt:39)
at com.haulmont.jmixstudio.backend.buildsystem.BuildSystemWriter$doWriteActions$filesCopiesContainer$1.compute(BuildSystemWriter.kt:35)
at com.haulmont.jmixstudio.backend.buildsystem.BuildSystemWriter$doWriteActions$filesCopiesContainer$1.compute(BuildSystemWriter.kt:18)
at com.intellij.openapi.command.WriteCommandAction.lambda$runWriteCommandAction$5(WriteCommandAction.java:366)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$compute$3(WriteCommandAction.java:167)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$1(WriteCommandAction.java:150)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1023)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$2(WriteCommandAction.java:148)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:184)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.doRunWriteCommandAction(WriteCommandAction.java:157)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.run(WriteCommandAction.java:124)
at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.compute(WriteCommandAction.java:167)
at com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:366)
at com.haulmont.jmixstudio.backend.buildsystem.BuildSystemWriter.doWriteActions(BuildSystemWriter.kt:31)
at com.haulmont.jmixstudio.backend.JmixProjectModule.modify(JmixProjectModule.kt:160)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.SingleProjectModule.modify(JmixProjectModuleWrapper.kt:41)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesPanel.commitJmixBomVersion(JmixProjectPropertiesPanel.kt:167)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesPanel.applyWithProgressBar(JmixProjectPropertiesPanel.kt:155)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog.doApplyWithProgressBar(JmixProjectPropertiesDialog.kt:168)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog.access$doApplyWithProgressBar(JmixProjectPropertiesDialog.kt:35)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog$doApplyAndClose$1.invoke(JmixProjectPropertiesDialog.kt:160)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog$doApplyAndClose$1.invoke(JmixProjectPropertiesDialog.kt:35)
at com.haulmont.jmixstudio.intellij.ui.pm.projectProperties.JmixProjectPropertiesDialog$sam$java_util_function_Consumer$0.accept(JmixProjectPropertiesDialog.kt)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$runEdtProgressWriteAction$9(ApplicationImpl.java:987)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.util.PotemkinProgress.runInSwingThread(PotemkinProgress.java:150)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$runEdtProgressWriteAction$10(ApplicationImpl.java:987)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:1011)
at com.intellij.openapi.application.impl.ApplicationImpl.runEdtProgressWriteAction(ApplicationImpl.java:985)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithNonCancellableProgressInDispatchThread(ApplicationImpl.java:966)
... 122 more