diff --git a/ReadMe.md b/ReadMe.md index f940bce800a..3cb5ef4c1a8 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -125,9 +125,20 @@ From this root project there are Run/Debug Configurations for running IDEA or th ### Including into composite build -To include kotlin compiler into [composite build](https://docs.gradle.org/current/userguide/composite_builds.html) you need to define `dependencySubstitution` for `kotlin-compiler` module in `settings.gradle` +To include kotlin compiler into [composite build](https://docs.gradle.org/current/userguide/composite_builds.html) you need to define `dependencySubstitution` for `kotlin-compiler` module in `settings.gradle.kts` +```Kotlin +includeBuild("/path/to/kotlin") { + dependencySubstitution { + substitute(module("org.jetbrains.kotlin:kotlin-compiler")) + .with(project(":include:kotlin-compiler")) + } +} ``` + +or in `settings.gradle` + +```Groovy includeBuild('/path/to/kotlin') { dependencySubstitution { substitute module('org.jetbrains.kotlin:kotlin-compiler') with project(':include:kotlin-compiler')