Skip to content

Commit 719d72c

Browse files
committed
chore: allow hotswap in 'runIde' for >=IC-2024.1
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent 9ee07fa commit 719d72c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.gradle.kts

+9
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,20 @@ intellijPlatform {
110110
}
111111

112112
tasks {
113+
fun supportsEnhancedClassRedefinition(): Boolean {
114+
val platformVersion = findProperty("platformVersion").toString().toFloatOrNull()
115+
return platformVersion != null
116+
&& platformVersion >= 2024.1
117+
}
118+
113119
wrapper {
114120
gradleVersion = providers.gradleProperty("gradleVersion").get()
115121
}
116122

117123
runIde {
124+
if (supportsEnhancedClassRedefinition()) {
125+
jvmArgs("-XX:+AllowEnhancedClassRedefinition", "-XX:HotswapAgent=fatjar")
126+
}
118127
systemProperty("com.redhat.devtools.intellij.telemetry.mode", "debug")
119128
}
120129

0 commit comments

Comments
 (0)