Skip to content

Commit 683948b

Browse files
committed
Fix the issues caused by upgrading "IntelliJ Platform Gradle Plugin".
1 parent 77dc043 commit 683948b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

build.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import de.undercouch.gradle.tasks.download.Download
1818
import org.apache.tools.ant.taskdefs.condition.Os
1919
import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask
20+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2021
import java.io.ByteArrayOutputStream
2122

2223
plugins {
@@ -151,6 +152,7 @@ project(":") {
151152
mavenCentral()
152153
intellijPlatform {
153154
defaultRepositories()
155+
marketplace()
154156
}
155157
}
156158

@@ -220,21 +222,22 @@ project(":") {
220222
}
221223
}
222224

225+
processResources {
226+
dependsOn("installEmmyDebugger")
227+
}
228+
223229
compileKotlin {
224-
kotlinOptions {
225-
jvmTarget = buildVersionData.jvmTarget
230+
compilerOptions {
231+
jvmTarget.set(JvmTarget.fromTarget(buildVersionData.jvmTarget))
226232
}
227233
}
228234

229235
patchPluginXml {
236+
dependsOn("installEmmyDebugger")
230237
sinceBuild.set(buildVersionData.sinceBuild)
231238
untilBuild.set(buildVersionData.untilBuild)
232239
}
233240

234-
// instrumentCode {
235-
// compilerVersion.set(buildVersionData.instrumentCodeCompilerVersion)
236-
// }
237-
238241
publishPlugin {
239242
token.set(System.getenv("IDEA_PUBLISH_TOKEN"))
240243
}

0 commit comments

Comments
 (0)