Skip to content

Commit

Permalink
feat: allow hotswap in 'runIde' for >=IC-2024.1 (#951)
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish authored Dec 13, 2024
1 parent 20de3d6 commit dc979a2
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 @@ -121,7 +121,16 @@ tasks {
gradleVersion = providers.gradleProperty("gradleVersion").get()
}

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

runIde {
if (supportsEnhancedClassRedefinition()) {
jvmArgs("-XX:+AllowEnhancedClassRedefinition", "-XX:HotswapAgent=fatjar")
}
systemProperty("com.redhat.devtools.intellij.telemetry.mode", "debug")
findProperty("tools.dl.path")?.let { systemProperty("tools.dl.path", it) }
//systemProperty("jboss.sandbox.api.endpoint", "http://localhost:3000") // enable when running sandbox locally, see below
Expand Down

0 comments on commit dc979a2

Please sign in to comment.