@@ -8,8 +8,8 @@ apply from: rootProject.file("gradle/experimental.gradle")
88def rootModule = " kotlinx.coroutines"
99def coreModule = " kotlinx-coroutines-core"
1010// 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' ]
1313// Not published
1414def unpublished = internal + [' kotlinx-coroutines-rx-example' , ' example-frontend-js' , ' android-unit-tests' ]
1515
@@ -58,12 +58,12 @@ buildscript {
5858 }
5959
6060 dependencies {
61- classpath " org.jfrog.buildinfo:build-info-extractor-gradle:$artifactory_plugin_version "
6261 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
6362 classpath " org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version "
6463 classpath " org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicfu_version "
6564 classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version "
6665 classpath " com.moowork.gradle:gradle-node-plugin:$gradle_node_version "
66+ classpath " io.spring.gradle:dependency-management-plugin:$spring_dependency_management_version "
6767
6868 // JMH plugins
6969 classpath " com.github.jengelman.gradle.plugins:shadow:4.0.2"
@@ -95,6 +95,8 @@ allprojects {
9595 maven { url " https://oss.sonatype.org/content/repositories/snapshots" }
9696 }
9797 }
98+
99+ ext. unpublished = unpublished
98100}
99101
100102allprojects {
@@ -201,23 +203,27 @@ def core_docs_url = "https://kotlin.github.io/kotlinx.coroutines/$coreModule/"
201203def core_docs_file = " $projectDir /kotlinx-coroutines-core/build/dokka/kotlinx-coroutines-core/package-list"
202204
203205configure(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+ }
205209 apply from : rootProject. file(' gradle/publish-bintray.gradle' )
206210}
207211
208212configure(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+ }
215221 }
216222 }
217- }
218223
219- if (platformOf(it) == " jvm" ) {
220- dokkaJavadoc. dependsOn project(" :$coreModule " ). dokka
224+ if (platformOf(it) == " jvm" ) {
225+ dokkaJavadoc. dependsOn project(" :$coreModule " ). dokka
226+ }
221227 }
222228}
223229
0 commit comments