diff --git a/extensions/intellij/intellij_generator_plugin/.gitignore b/extensions/intellij/intellij_generator_plugin/.gitignore
index ab7caed6284..f266aa3d9ad 100644
--- a/extensions/intellij/intellij_generator_plugin/.gitignore
+++ b/extensions/intellij/intellij_generator_plugin/.gitignore
@@ -2,6 +2,7 @@
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
+local.properties
# Sensitive or high-churn files:
.idea/**/dataSources/
diff --git a/extensions/intellij/intellij_generator_plugin/build.gradle b/extensions/intellij/intellij_generator_plugin/build.gradle
index 0ff7305b30f..deda577f355 100644
--- a/extensions/intellij/intellij_generator_plugin/build.gradle
+++ b/extensions/intellij/intellij_generator_plugin/build.gradle
@@ -1,11 +1,11 @@
plugins {
id 'java'
- id 'org.jetbrains.intellij' version '1.16.1'
- id 'org.jetbrains.kotlin.jvm' version '1.9.22'
+ id 'org.jetbrains.intellij' version '1.17.4'
+ id 'org.jetbrains.kotlin.jvm' version '1.9.25'
}
group 'com.bloc'
-version '4.0.1'
+version '4.0.2'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
@@ -13,12 +13,13 @@ apply plugin: 'kotlin'
apply plugin: 'idea'
java {
- sourceCompatibility = 11
- targetCompatibility = 11
+ sourceCompatibility = 17
+ targetCompatibility = 17
}
intellij {
- version = '2022.1.1'
+ type = 'IC'
+ version = '2022.3'
plugins = ['java']
updateSinceUntilBuild.set(false)
}
@@ -28,17 +29,16 @@ repositories {
}
dependencies {
- compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testCompileOnly(group: 'junit', name: 'junit', version: '4.13.2')
implementation("com.fleshgrinder.kotlin:case-format:0.2.0")
}
compileKotlin {
- kotlinOptions.jvmTarget = "11"
+ kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
- kotlinOptions.jvmTarget = "11"
+ kotlinOptions.jvmTarget = "17"
}
patchPluginXml {
diff --git a/extensions/intellij/intellij_generator_plugin/gradle.properties b/extensions/intellij/intellij_generator_plugin/gradle.properties
index 29e08e8ca88..c39a2baf8c4 100644
--- a/extensions/intellij/intellij_generator_plugin/gradle.properties
+++ b/extensions/intellij/intellij_generator_plugin/gradle.properties
@@ -1 +1,2 @@
-kotlin.code.style=official
\ No newline at end of file
+kotlin.code.style=official
+kotlin.stdlib.default.dependency = true
\ No newline at end of file
diff --git a/extensions/intellij/intellij_generator_plugin/gradle/wrapper/gradle-wrapper.properties b/extensions/intellij/intellij_generator_plugin/gradle/wrapper/gradle-wrapper.properties
index f42e62f3724..fce403e45e4 100644
--- a/extensions/intellij/intellij_generator_plugin/gradle/wrapper/gradle-wrapper.properties
+++ b/extensions/intellij/intellij_generator_plugin/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateBlocAction.kt b/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateBlocAction.kt
index 4fdbc7f1cd1..306b98be0a7 100644
--- a/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateBlocAction.kt
+++ b/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateBlocAction.kt
@@ -10,6 +10,7 @@ import com.intellij.openapi.project.Project
import com.intellij.psi.*
class GenerateBlocAction : AnAction(), GenerateBlocDialog.Listener {
+ override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
private lateinit var dataContext: DataContext
diff --git a/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateCubitAction.kt b/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateCubitAction.kt
index 5edd083e14f..dbc6988d649 100644
--- a/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateCubitAction.kt
+++ b/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateCubitAction.kt
@@ -10,6 +10,7 @@ import com.intellij.openapi.project.Project
import com.intellij.psi.*
class GenerateCubitAction : AnAction(), GenerateBlocDialog.Listener {
+ override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
private lateinit var dataContext: DataContext
diff --git a/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateEquatablePropsAction.kt b/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateEquatablePropsAction.kt
index eea109fcd29..0442c7fa932 100644
--- a/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateEquatablePropsAction.kt
+++ b/extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/action/GenerateEquatablePropsAction.kt
@@ -3,6 +3,7 @@ package com.bloc.intellij_generator_plugin.action
import com.intellij.lang.ASTNode
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
+import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.editor.Document
@@ -13,6 +14,7 @@ import com.intellij.psi.util.PsiUtilBase
class GenerateEquatablePropsAction : AnAction() {
+ override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
private var propsNullable = false
diff --git a/extensions/intellij/intellij_generator_plugin/src/main/resources/META-INF/plugin.xml b/extensions/intellij/intellij_generator_plugin/src/main/resources/META-INF/plugin.xml
index 7efef3738f5..b5d31d950b3 100644
--- a/extensions/intellij/intellij_generator_plugin/src/main/resources/META-INF/plugin.xml
+++ b/extensions/intellij/intellij_generator_plugin/src/main/resources/META-INF/plugin.xml
@@ -11,6 +11,7 @@
+ v4.0.2 - Support for Intellij 2024.2
v4.0.1 - Support for Intellij 2024
v4.0.0 - Support for Sealed Classes and Dependency Upgrades
v3.4.0 - Support for Freezed
@@ -40,7 +41,7 @@
-
+