diff --git a/prepare/compiler/build.gradle.kts b/prepare/compiler/build.gradle.kts index d258a14e4f7..21b4396202b 100644 --- a/prepare/compiler/build.gradle.kts +++ b/prepare/compiler/build.gradle.kts @@ -89,6 +89,9 @@ val distLibraryProjects = listOfNotNull( ":kotlin-imports-dumper-compiler-plugin", ":kotlin-main-kts", ":kotlin-preloader", + // Although, Kotlin compiler is compiled against reflect of an older version (which is bundled into minimal supported IDEA). We put + // SNAPSHOT reflect into the dist because we use reflect dist in user code compile classpath (see JvmArgumentsKt.configureStandardLibs). + // We can use reflect of a bigger version in Kotlin compiler runtime, because kotlin-reflect follows backwards binary compatibility ":kotlin-reflect", ":kotlin-runner", ":kotlin-script-runtime",