From 136a64a0b71b121705529d269501fbd2d5739dfd Mon Sep 17 00:00:00 2001 From: Victor Turansky Date: Mon, 30 Mar 2020 20:28:29 +0300 Subject: [PATCH] README Kotlin DSL script for composite build --- ReadMe.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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')