Skip to content

Commit

Permalink
enhancement: allow hot swap when developing
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <adietish@redhat.com>
  • Loading branch information
adietish committed Dec 13, 2024
1 parent 9ee07fa commit 177b987
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 177b987

Please sign in to comment.