@@ -2,6 +2,7 @@ import org.jetbrains.grammarkit.tasks.GenerateLexerTask
22import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
33import org.jetbrains.intellij.platform.gradle.TestFrameworkType
44import org.jetbrains.intellij.platform.gradle.extensions.intellijPlatform
5+ import org.jetbrains.intellij.platform.gradle.utils.asPath
56import org.jetbrains.kotlin.gradle.dsl.JvmDefaultMode
67import org.jetbrains.kotlin.gradle.dsl.JvmTarget
78import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
@@ -91,12 +92,13 @@ sourceSets {
9192 }
9293}
9394
94- java {
95- sourceCompatibility = JavaVersion .VERSION_21
96- targetCompatibility = JavaVersion .VERSION_21
97- }
98-
9995kotlin {
96+ @Suppress(" UnstableApiUsage" )
97+ jvmToolchain {
98+ languageVersion = JavaLanguageVersion .of(21 )
99+ vendor = JvmVendorSpec .JETBRAINS
100+ }
101+
100102 explicitApiWarning()
101103 compilerOptions {
102104 languageVersion = KotlinVersion .KOTLIN_2_3
@@ -142,11 +144,7 @@ tasks {
142144 }
143145
144146 runIde {
145- val dcevm = stringProperty(" dcevmExecutable" , default = " " )
146-
147- if (dcevm.isNotBlank()) {
148- @Suppress(" UsePropertyAccessSyntax" )
149- setExecutable(dcevm)
150- }
147+ val agentPath = layout.projectDirectory.file(" hotswap-agent-2.0.1.jar" ).asPath
148+ jvmArgs(" -XX:+AllowEnhancedClassRedefinition" , " -XX:HotswapAgent=external" , " -javaagent:$agentPath " )
151149 }
152150}
0 commit comments