File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 2
2
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
+
6
+ import org.jetbrains.dokka.gradle.DokkaTaskPartial
5
7
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
6
8
import org.jetbrains.kotlin.konan.target.HostManager
7
- import org.gradle.util.VersionNumber
8
- import org.jetbrains.dokka.gradle.DokkaTaskPartial
9
- import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
10
9
11
10
apply plugin : ' jdk-convention'
12
11
apply from : rootProject. file(" gradle/opt-in.gradle" )
@@ -155,6 +154,21 @@ configure(subprojects.findAll { !sourceless.contains(it.name) && it.name != core
155
154
}
156
155
}
157
156
157
+ configure(subprojects. findAll { ! unpublished. contains(it. name) }) {
158
+ if (it. name == " kotlinx-coroutines-bom" || it. name == " kotlinx.coroutines" ) return
159
+ if (it. name == coreModule) {
160
+ kotlin. sourceSets. jvmMain. dependencies {
161
+ delegate. project. dependencies {
162
+ api platform(project(" :kotlinx-coroutines-bom" ))
163
+ }
164
+ }
165
+ } else {
166
+ dependencies {
167
+ api platform(project(" :kotlinx-coroutines-bom" ))
168
+ }
169
+ }
170
+
171
+ }
158
172
// Configure subprojects with Kotlin sources
159
173
configure(subprojects. findAll { ! sourceless. contains(it. name) }) {
160
174
// Use atomicfu plugin, it also adds all the necessary dependencies
You can’t perform that action at this time.
0 commit comments