@@ -8,8 +8,8 @@ apply from: rootProject.file("gradle/experimental.gradle")
8
8
def rootModule = " kotlinx.coroutines"
9
9
def coreModule = " kotlinx-coroutines-core"
10
10
// Not applicable for Kotlin plugin
11
- def sourceless = [' kotlinx.coroutines' , ' site' ]
12
- def internal = sourceless + [ ' benchmarks' , ' knit' , ' js-stub' , ' stdlib-stubs' , ' binary-compatibility-validator' ]
11
+ def sourceless = [' kotlinx.coroutines' , ' site' , ' kotlinx-coroutines-bom ' ]
12
+ def internal = [ ' kotlinx.coroutines ' , ' site ' , ' benchmarks' , ' knit' , ' js-stub' , ' stdlib-stubs' , ' binary-compatibility-validator' ]
13
13
// Not published
14
14
def unpublished = internal + [' kotlinx-coroutines-rx-example' , ' example-frontend-js' , ' android-unit-tests' ]
15
15
@@ -58,12 +58,12 @@ buildscript {
58
58
}
59
59
60
60
dependencies {
61
- classpath " org.jfrog.buildinfo:build-info-extractor-gradle:$artifactory_plugin_version "
62
61
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
63
62
classpath " org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version "
64
63
classpath " org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicfu_version "
65
64
classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version "
66
65
classpath " com.moowork.gradle:gradle-node-plugin:$gradle_node_version "
66
+ classpath " io.spring.gradle:dependency-management-plugin:$spring_dependency_management_version "
67
67
68
68
// JMH plugins
69
69
classpath " com.github.jengelman.gradle.plugins:shadow:4.0.2"
@@ -95,6 +95,8 @@ allprojects {
95
95
maven { url " https://oss.sonatype.org/content/repositories/snapshots" }
96
96
}
97
97
}
98
+
99
+ ext. unpublished = unpublished
98
100
}
99
101
100
102
allprojects {
@@ -201,23 +203,27 @@ def core_docs_url = "https://kotlin.github.io/kotlinx.coroutines/$coreModule/"
201
203
def core_docs_file = " $projectDir /kotlinx-coroutines-core/build/dokka/kotlinx-coroutines-core/package-list"
202
204
203
205
configure(subprojects. findAll { ! unpublished. contains(it. name) }) {
204
- apply from : rootProject. file(' gradle/dokka.gradle' )
206
+ if (it. name != ' kotlinx-coroutines-bom' ) {
207
+ apply from : rootProject. file(' gradle/dokka.gradle' )
208
+ }
205
209
apply from : rootProject. file(' gradle/publish-bintray.gradle' )
206
210
}
207
211
208
212
configure(subprojects. findAll { ! unpublished. contains(it. name) }) {
209
- if (it. name != coreModule) {
210
- dokka. dependsOn project(" :$coreModule " ). dokka
211
- tasks. withType(dokka. getClass()) {
212
- externalDocumentationLink {
213
- url = new URL (core_docs_url)
214
- packageListUrl = new URL (" file://$core_docs_file " )
213
+ if (it. name != " kotlinx-coroutines-bom" ) {
214
+ if (it. name != coreModule) {
215
+ dokka. dependsOn project(" :$coreModule " ). dokka
216
+ tasks. withType(dokka. getClass()) {
217
+ externalDocumentationLink {
218
+ url = new URL (core_docs_url)
219
+ packageListUrl = new URL (" file://$core_docs_file " )
220
+ }
215
221
}
216
222
}
217
- }
218
223
219
- if (platformOf(it) == " jvm" ) {
220
- dokkaJavadoc. dependsOn project(" :$coreModule " ). dokka
224
+ if (platformOf(it) == " jvm" ) {
225
+ dokkaJavadoc. dependsOn project(" :$coreModule " ). dokka
226
+ }
221
227
}
222
228
}
223
229
0 commit comments