mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
Force bootstrap stdlib in modules that used in composite build
This commit is contained in:
@@ -81,8 +81,8 @@ fun Project.ideaUltimatePreloadedDeps(vararg artifactBaseNames: String, subdir:
|
||||
fun Project.kotlinDep(artifactBaseName: String, version: String, classifier: String? = null): String =
|
||||
listOfNotNull("org.jetbrains.kotlin:kotlin-$artifactBaseName:$version", classifier).joinToString(":")
|
||||
|
||||
fun Project.kotlinStdlib(suffix: String? = null, classifier: String? = null): Any {
|
||||
return if (kotlinBuildProperties.useBootstrapStdlib)
|
||||
fun Project.kotlinStdlib(suffix: String? = null, classifier: String? = null, forceBootstrap: Boolean = false): Any {
|
||||
return if (forceBootstrap || kotlinBuildProperties.useBootstrapStdlib)
|
||||
kotlinDep(listOfNotNull("stdlib", suffix).joinToString("-"), bootstrapKotlinVersion, classifier)
|
||||
else
|
||||
dependencies.project(listOfNotNull(":kotlin-stdlib", suffix).joinToString("-"), classifier)
|
||||
|
||||
@@ -6,7 +6,7 @@ plugins {
|
||||
description = "Kotlin/Native utils"
|
||||
|
||||
dependencies {
|
||||
compile(kotlinStdlib())
|
||||
compile(kotlinStdlib(forceBootstrap = true))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -6,7 +6,7 @@ plugins {
|
||||
description = "Common klib reader and writer"
|
||||
|
||||
dependencies {
|
||||
compile(kotlinStdlib())
|
||||
compile(kotlinStdlib(forceBootstrap = true))
|
||||
compile(project(":kotlin-util-io"))
|
||||
}
|
||||
|
||||
|
||||
@@ -211,6 +211,6 @@ allprojects { project ->
|
||||
}
|
||||
|
||||
dependencies.ext.kotlinStdlib = { suffix ->
|
||||
DependenciesKt.kotlinStdlib(project, suffix, null)
|
||||
DependenciesKt.kotlinStdlib(project, suffix, null, false)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ plugins {
|
||||
description = "Kotlin/Native utils"
|
||||
|
||||
dependencies {
|
||||
compileOnly(kotlinStdlib())
|
||||
compileOnly(kotlinStdlib(forceBootstrap = true))
|
||||
compile(project(":kotlin-util-io"))
|
||||
|
||||
testCompile(commonDep("junit:junit"))
|
||||
|
||||
Reference in New Issue
Block a user