Skip to content

Commit

Permalink
Introduce coroutines platform to have all the dependencies aligned
Browse files Browse the repository at this point in the history
Fixes #2865
  • Loading branch information
qwwdfsad committed Oct 12, 2021
1 parent 09d1975 commit d361f65
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.gradle
Expand Up @@ -2,6 +2,8 @@
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/


import org.jetbrains.dokka.gradle.DokkaTaskPartial
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.konan.target.HostManager
import org.jetbrains.dokka.gradle.DokkaTaskPartial
Expand Down Expand Up @@ -160,6 +162,21 @@ configure(subprojects.findAll { !sourceless.contains(it.name) && it.name != core
}
}

configure(subprojects.findAll { !unpublished.contains(it.name) }) {
if (it.name == "kotlinx-coroutines-bom" || it.name == "kotlinx.coroutines") return
if (it.name == coreModule) {
kotlin.sourceSets.jvmMain.dependencies {
delegate.project.dependencies {
api platform(project(":kotlinx-coroutines-bom"))
}
}
} else {
dependencies {
api platform(project(":kotlinx-coroutines-bom"))
}
}

}
// Configure subprojects with Kotlin sources
configure(subprojects.findAll { !sourceless.contains(it.name) }) {
// Use atomicfu plugin, it also adds all the necessary dependencies
Expand Down

0 comments on commit d361f65

Please sign in to comment.