Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame] | 1 | /* |
Vsevolod Tolstopyatov | 41a2e30 | 2021-02-04 07:16:48 -0800 | [diff] [blame] | 2 | * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame] | 3 | */ |
| 4 | |
Victor Turansky | 9982979 | 2020-05-02 14:22:08 +0300 | [diff] [blame] | 5 | pluginManagement { |
| 6 | plugins { |
Victor Turansky | e47cb35 | 2020-05-12 18:33:04 +0300 | [diff] [blame] | 7 | id "org.openjfx.javafxplugin" version javafx_plugin_version |
| 8 | |
| 9 | // JMH |
Victor Turansky | 9982979 | 2020-05-02 14:22:08 +0300 | [diff] [blame] | 10 | id "net.ltgt.apt" version "0.21" |
Vsevolod Tolstopyatov | 9587590 | 2020-10-20 02:40:38 -0700 | [diff] [blame] | 11 | id "me.champeau.gradle.jmh" version "0.5.2" |
Victor Turansky | 9982979 | 2020-05-02 14:22:08 +0300 | [diff] [blame] | 12 | } |
Vsevolod Tolstopyatov | bcbcd16 | 2021-07-06 14:29:27 +0300 | [diff] [blame] | 13 | |
| 14 | repositories { |
| 15 | maven { url "https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev/" } |
| 16 | gradlePluginPortal() |
| 17 | } |
Victor Turansky | 9982979 | 2020-05-02 14:22:08 +0300 | [diff] [blame] | 18 | } |
| 19 | |
Kirill Timofeev | a518696 | 2017-10-25 14:25:47 +0300 | [diff] [blame] | 20 | rootProject.name = 'kotlinx.coroutines' |
Vsevolod Tolstopyatov | 4ddfc91 | 2018-07-12 18:36:02 +0300 | [diff] [blame] | 21 | enableFeaturePreview('GRADLE_METADATA') |
Kirill Timofeev | a518696 | 2017-10-25 14:25:47 +0300 | [diff] [blame] | 22 | |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 23 | def module(String path) { |
| 24 | int i = path.lastIndexOf('/') |
| 25 | def name = path.substring(i + 1) |
| 26 | include(name) |
| 27 | project(":$name").projectDir = file(path) |
| 28 | } |
Vsevolod Tolstopyatov | aff8202 | 2020-03-10 19:58:36 +0300 | [diff] [blame] | 29 | def prop = System.getProperty("build_snapshot_train") |
| 30 | ext.build_snapshot_train = prop != null && prop != "" |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 31 | // --------------------------- |
Kirill Timofeev | a518696 | 2017-10-25 14:25:47 +0300 | [diff] [blame] | 32 | |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 33 | include('benchmarks') |
Kirill Timofeev | a518696 | 2017-10-25 14:25:47 +0300 | [diff] [blame] | 34 | |
Vsevolod Tolstopyatov | e50a0fa | 2019-01-28 11:34:24 +0300 | [diff] [blame] | 35 | include "kotlinx-coroutines-core" |
Kirill Timofeev | a518696 | 2017-10-25 14:25:47 +0300 | [diff] [blame] | 36 | |
Vsevolod Tolstopyatov | e50a0fa | 2019-01-28 11:34:24 +0300 | [diff] [blame] | 37 | module('kotlinx-coroutines-test') |
| 38 | module('kotlinx-coroutines-debug') |
Vsevolod Tolstopyatov | fe4e05c | 2019-07-19 12:28:15 +0300 | [diff] [blame] | 39 | module('kotlinx-coroutines-bom') |
| 40 | |
Kirill Timofeev | a518696 | 2017-10-25 14:25:47 +0300 | [diff] [blame] | 41 | |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 42 | module('integration/kotlinx-coroutines-guava') |
| 43 | module('integration/kotlinx-coroutines-jdk8') |
Vsevolod Tolstopyatov | 7f11d0e | 2018-09-24 17:57:12 +0300 | [diff] [blame] | 44 | module('integration/kotlinx-coroutines-slf4j') |
Alex Saveau | 118ee99 | 2018-08-30 16:13:47 -0700 | [diff] [blame] | 45 | module('integration/kotlinx-coroutines-play-services') |
Roman Elizarov | e1c0b65 | 2017-12-01 14:02:57 +0300 | [diff] [blame] | 46 | |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 47 | module('reactive/kotlinx-coroutines-reactive') |
| 48 | module('reactive/kotlinx-coroutines-reactor') |
dkhalanskyjb | a25bf36 | 2020-03-13 15:04:49 +0300 | [diff] [blame] | 49 | module('reactive/kotlinx-coroutines-jdk9') |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 50 | module('reactive/kotlinx-coroutines-rx2') |
Vsevolod Tolstopyatov | 3250e47 | 2020-04-24 19:32:55 +0300 | [diff] [blame] | 51 | module('reactive/kotlinx-coroutines-rx3') |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 52 | module('ui/kotlinx-coroutines-android') |
Vsevolod Tolstopyatov | 4327b21 | 2018-12-17 19:49:12 +0300 | [diff] [blame] | 53 | module('ui/kotlinx-coroutines-android/android-unit-tests') |
Victor Turansky | 2c99a10 | 2020-05-15 17:38:40 +0300 | [diff] [blame] | 54 | if (JavaVersion.current().isJava11Compatible()) { |
| 55 | module('ui/kotlinx-coroutines-javafx') |
| 56 | } |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 57 | module('ui/kotlinx-coroutines-swing') |
| 58 | |
Vsevolod Tolstopyatov | aff8202 | 2020-03-10 19:58:36 +0300 | [diff] [blame] | 59 | if (!build_snapshot_train) { |
| 60 | module('js/example-frontend-js') |
Vsevolod Tolstopyatov | aff8202 | 2020-03-10 19:58:36 +0300 | [diff] [blame] | 61 | } |
dkhalanskyjb | 3651276 | 2020-02-21 17:31:05 +0300 | [diff] [blame] | 62 | |
dkhalanskyjb | 02b403d | 2020-04-06 16:33:22 +0300 | [diff] [blame] | 63 | module('integration-testing') |