diff --git a/jps/jps-plugin/build.gradle.kts b/jps/jps-plugin/build.gradle.kts index ab25685df11..0d818f1d28d 100644 --- a/jps/jps-plugin/build.gradle.kts +++ b/jps/jps-plugin/build.gradle.kts @@ -10,9 +10,10 @@ dependencies { compile(project(":core:descriptors")) compile(project(":core:descriptors.jvm")) compile(project(":kotlin-compiler-runner")) - compile(project(":compiler:daemon-common")) - compile(project(":compiler:daemon-common-new")) + compile(project(":daemon-common")) + compile(project(":daemon-common-new")) compile(projectRuntimeJar(":kotlin-daemon-client")) + compile(projectRuntimeJar(":kotlin-daemon")) compile(project(":compiler:frontend.java")) compile(project(":js:js.frontend")) compile(projectRuntimeJar(":kotlin-preloader")) diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/JpsKotlinCompilerRunner.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/JpsKotlinCompilerRunner.kt index 09b44cbf83f..5088cfe0fc3 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/JpsKotlinCompilerRunner.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/JpsKotlinCompilerRunner.kt @@ -338,8 +338,9 @@ class JpsKotlinCompilerRunner { environment.progressReporter.progress("connecting to daemon") val libPath = CompilerRunnerUtil.getLibPath(environment.kotlinPaths, environment.messageCollector) val compilerPath = File(libPath, "kotlin-compiler.jar") + val daemonJarPath = File(libPath, "kotlin-daemon.jar") val toolsJarPath = CompilerRunnerUtil.jdkToolsJar - val compilerId = CompilerId.makeCompilerId(listOfNotNull(compilerPath, toolsJarPath)) + val compilerId = CompilerId.makeCompilerId(listOfNotNull(compilerPath, toolsJarPath, daemonJarPath)) val daemonOptions = configureDaemonOptions() val additionalJvmParams = mutableListOf()