diff options
author | Vsevolod Tolstopyatov <qwwdfsad@gmail.com> | 2019-07-19 12:28:15 +0300 |
---|---|---|
committer | Vsevolod Tolstopyatov <qwwdfsad@gmail.com> | 2019-07-19 15:47:45 +0300 |
commit | fe4e05c69f1c701cac84d5676341a55b54678841 (patch) | |
tree | baa26d1b4c41f61a509e84502bb2a1899c717043 /build.gradle | |
parent | 480939316a35fe4b0786a5ec30be9c33ae7e381b (diff) | |
download | kotlinx.coroutines-fe4e05c69f1c701cac84d5676341a55b54678841.tar.gz |
Module with kotlinx-coroutines BOM for better dependency management
* Snapshot publication is removed as no longer needed
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/build.gradle b/build.gradle index a1a797f8..4bccce7a 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,8 @@ apply from: rootProject.file("gradle/experimental.gradle") def rootModule = "kotlinx.coroutines" def coreModule = "kotlinx-coroutines-core" // Not applicable for Kotlin plugin -def sourceless = ['kotlinx.coroutines', 'site'] -def internal = sourceless + ['benchmarks', 'knit', 'js-stub', 'stdlib-stubs', 'binary-compatibility-validator'] +def sourceless = ['kotlinx.coroutines', 'site', 'kotlinx-coroutines-bom'] +def internal = ['kotlinx.coroutines', 'site', 'benchmarks', 'knit', 'js-stub', 'stdlib-stubs', 'binary-compatibility-validator'] // Not published def unpublished = internal + ['kotlinx-coroutines-rx-example', 'example-frontend-js', 'android-unit-tests'] @@ -58,12 +58,12 @@ buildscript { } dependencies { - classpath "org.jfrog.buildinfo:build-info-extractor-gradle:$artifactory_plugin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version" classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicfu_version" classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version" classpath "com.moowork.gradle:gradle-node-plugin:$gradle_node_version" + classpath "io.spring.gradle:dependency-management-plugin:$spring_dependency_management_version" // JMH plugins classpath "com.github.jengelman.gradle.plugins:shadow:4.0.2" @@ -95,6 +95,8 @@ allprojects { maven { url "https://oss.sonatype.org/content/repositories/snapshots" } } } + + ext.unpublished = unpublished } allprojects { @@ -201,23 +203,27 @@ def core_docs_url = "https://kotlin.github.io/kotlinx.coroutines/$coreModule/" def core_docs_file = "$projectDir/kotlinx-coroutines-core/build/dokka/kotlinx-coroutines-core/package-list" configure(subprojects.findAll { !unpublished.contains(it.name) }) { - apply from: rootProject.file('gradle/dokka.gradle') + if (it.name != 'kotlinx-coroutines-bom') { + apply from: rootProject.file('gradle/dokka.gradle') + } apply from: rootProject.file('gradle/publish-bintray.gradle') } configure(subprojects.findAll { !unpublished.contains(it.name) }) { - if (it.name != coreModule) { - dokka.dependsOn project(":$coreModule").dokka - tasks.withType(dokka.getClass()) { - externalDocumentationLink { - url = new URL(core_docs_url) - packageListUrl = new URL("file://$core_docs_file") + if (it.name != "kotlinx-coroutines-bom") { + if (it.name != coreModule) { + dokka.dependsOn project(":$coreModule").dokka + tasks.withType(dokka.getClass()) { + externalDocumentationLink { + url = new URL(core_docs_url) + packageListUrl = new URL("file://$core_docs_file") + } } } - } - if (platformOf(it) == "jvm") { - dokkaJavadoc.dependsOn project(":$coreModule").dokka + if (platformOf(it) == "jvm") { + dokkaJavadoc.dependsOn project(":$coreModule").dokka + } } } |