diff --git a/libraries/tools/kotlin-main-kts-test/build.gradle.kts b/libraries/tools/kotlin-main-kts-test/build.gradle.kts index 4497b1190ef..c26fc6a6c83 100644 --- a/libraries/tools/kotlin-main-kts-test/build.gradle.kts +++ b/libraries/tools/kotlin-main-kts-test/build.gradle.kts @@ -6,13 +6,17 @@ plugins { } dependencies { - testCompile(projectRuntimeJar(":kotlin-main-kts")) // runtimeJar needed to for proper dependency on the jar with relocations + if (!kotlinBuildProperties.isInJpsBuildIdeaSync) { + testCompile(projectRuntimeJar(":kotlin-main-kts")) // runtimeJar needed to for proper dependency on the jar with relocations + } + testCompile(project(":kotlin-scripting-jvm-host-embeddable")) testCompile(commonDep("junit")) compileOnly("org.apache.ivy:ivy:2.4.0") // for jps/pill if (kotlinBuildProperties.isInJpsBuildIdeaSync) { testCompile(project(":kotlin-scripting-jvm-host")) + testCompile(project(":kotlin-main-kts")) } }