Skip to content

Commit

Permalink
chore: allow hotswap in 'runIde' for >=IC-2024.1
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Dec 16, 2024
1 parent 9ee07fa commit 719d72c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,20 @@ intellijPlatform {
}

tasks {
fun supportsEnhancedClassRedefinition(): Boolean {
val platformVersion = findProperty("platformVersion").toString().toFloatOrNull()
return platformVersion != null
&& platformVersion >= 2024.1
}

wrapper {
gradleVersion = providers.gradleProperty("gradleVersion").get()
}

runIde {
if (supportsEnhancedClassRedefinition()) {
jvmArgs("-XX:+AllowEnhancedClassRedefinition", "-XX:HotswapAgent=fatjar")
}
systemProperty("com.redhat.devtools.intellij.telemetry.mode", "debug")
}

Expand Down

0 comments on commit 719d72c

Please sign in to comment.