blob: f0a764898b5ca96fae84626dae092c5f897945ec [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
Vsevolod Tolstopyatov41a2e302021-02-04 07:16:48 -08002 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03003 */
4
Victor Turansky99829792020-05-02 14:22:08 +03005pluginManagement {
6 plugins {
Victor Turanskye47cb352020-05-12 18:33:04 +03007 id "org.openjfx.javafxplugin" version javafx_plugin_version
8
9 // JMH
Victor Turansky99829792020-05-02 14:22:08 +030010 id "net.ltgt.apt" version "0.21"
Steve Elliottca095be2022-07-25 14:26:10 +000011 id "me.champeau.gradle.jmh" version "0.5.3"
Victor Turansky99829792020-05-02 14:22:08 +030012 }
Vsevolod Tolstopyatovbcbcd162021-07-06 14:29:27 +030013
14 repositories {
15 maven { url "https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev/" }
16 gradlePluginPortal()
17 }
Victor Turansky99829792020-05-02 14:22:08 +030018}
19
Kirill Timofeeva5186962017-10-25 14:25:47 +030020rootProject.name = 'kotlinx.coroutines'
21
Roman Elizarov31452902018-04-11 13:58:19 +030022def module(String path) {
23 int i = path.lastIndexOf('/')
24 def name = path.substring(i + 1)
25 include(name)
26 project(":$name").projectDir = file(path)
27}
Vsevolod Tolstopyatovaff82022020-03-10 19:58:36 +030028def prop = System.getProperty("build_snapshot_train")
29ext.build_snapshot_train = prop != null && prop != ""
Roman Elizarov31452902018-04-11 13:58:19 +030030// ---------------------------
Kirill Timofeeva5186962017-10-25 14:25:47 +030031
Roman Elizarov31452902018-04-11 13:58:19 +030032include('benchmarks')
Kirill Timofeeva5186962017-10-25 14:25:47 +030033
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +030034include "kotlinx-coroutines-core"
Kirill Timofeeva5186962017-10-25 14:25:47 +030035
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +030036module('kotlinx-coroutines-test')
37module('kotlinx-coroutines-debug')
Vsevolod Tolstopyatovfe4e05c2019-07-19 12:28:15 +030038module('kotlinx-coroutines-bom')
39
Kirill Timofeeva5186962017-10-25 14:25:47 +030040
Roman Elizarov31452902018-04-11 13:58:19 +030041module('integration/kotlinx-coroutines-guava')
42module('integration/kotlinx-coroutines-jdk8')
Vsevolod Tolstopyatov7f11d0e2018-09-24 17:57:12 +030043module('integration/kotlinx-coroutines-slf4j')
Alex Saveau118ee992018-08-30 16:13:47 -070044module('integration/kotlinx-coroutines-play-services')
Roman Elizarove1c0b652017-12-01 14:02:57 +030045
Roman Elizarov31452902018-04-11 13:58:19 +030046module('reactive/kotlinx-coroutines-reactive')
47module('reactive/kotlinx-coroutines-reactor')
dkhalanskyjba25bf362020-03-13 15:04:49 +030048module('reactive/kotlinx-coroutines-jdk9')
Roman Elizarov31452902018-04-11 13:58:19 +030049module('reactive/kotlinx-coroutines-rx2')
Vsevolod Tolstopyatov3250e472020-04-24 19:32:55 +030050module('reactive/kotlinx-coroutines-rx3')
Roman Elizarov31452902018-04-11 13:58:19 +030051module('ui/kotlinx-coroutines-android')
Vsevolod Tolstopyatov4327b212018-12-17 19:49:12 +030052module('ui/kotlinx-coroutines-android/android-unit-tests')
Victor Turansky2c99a102020-05-15 17:38:40 +030053if (JavaVersion.current().isJava11Compatible()) {
54 module('ui/kotlinx-coroutines-javafx')
55}
Roman Elizarov31452902018-04-11 13:58:19 +030056module('ui/kotlinx-coroutines-swing')
57
Vsevolod Tolstopyatovaff82022020-03-10 19:58:36 +030058if (!build_snapshot_train) {
59 module('js/example-frontend-js')
Vsevolod Tolstopyatovaff82022020-03-10 19:58:36 +030060}