blob: 44effa7c20e6eed58672d0d0f739c9723c12e8aa [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"
Vsevolod Tolstopyatov95875902020-10-20 02:40:38 -070011 id "me.champeau.gradle.jmh" version "0.5.2"
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'
Vsevolod Tolstopyatov4ddfc912018-07-12 18:36:02 +030021enableFeaturePreview('GRADLE_METADATA')
Kirill Timofeeva5186962017-10-25 14:25:47 +030022
Roman Elizarov31452902018-04-11 13:58:19 +030023def 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 Tolstopyatovaff82022020-03-10 19:58:36 +030029def prop = System.getProperty("build_snapshot_train")
30ext.build_snapshot_train = prop != null && prop != ""
Roman Elizarov31452902018-04-11 13:58:19 +030031// ---------------------------
Kirill Timofeeva5186962017-10-25 14:25:47 +030032
Roman Elizarov31452902018-04-11 13:58:19 +030033include('benchmarks')
Kirill Timofeeva5186962017-10-25 14:25:47 +030034
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +030035include "kotlinx-coroutines-core"
Kirill Timofeeva5186962017-10-25 14:25:47 +030036
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +030037module('kotlinx-coroutines-test')
38module('kotlinx-coroutines-debug')
Vsevolod Tolstopyatovfe4e05c2019-07-19 12:28:15 +030039module('kotlinx-coroutines-bom')
40
Kirill Timofeeva5186962017-10-25 14:25:47 +030041
Roman Elizarov31452902018-04-11 13:58:19 +030042module('integration/kotlinx-coroutines-guava')
43module('integration/kotlinx-coroutines-jdk8')
Vsevolod Tolstopyatov7f11d0e2018-09-24 17:57:12 +030044module('integration/kotlinx-coroutines-slf4j')
Alex Saveau118ee992018-08-30 16:13:47 -070045module('integration/kotlinx-coroutines-play-services')
Roman Elizarove1c0b652017-12-01 14:02:57 +030046
Roman Elizarov31452902018-04-11 13:58:19 +030047module('reactive/kotlinx-coroutines-reactive')
48module('reactive/kotlinx-coroutines-reactor')
dkhalanskyjba25bf362020-03-13 15:04:49 +030049module('reactive/kotlinx-coroutines-jdk9')
Roman Elizarov31452902018-04-11 13:58:19 +030050module('reactive/kotlinx-coroutines-rx2')
Vsevolod Tolstopyatov3250e472020-04-24 19:32:55 +030051module('reactive/kotlinx-coroutines-rx3')
Roman Elizarov31452902018-04-11 13:58:19 +030052module('ui/kotlinx-coroutines-android')
Vsevolod Tolstopyatov4327b212018-12-17 19:49:12 +030053module('ui/kotlinx-coroutines-android/android-unit-tests')
Victor Turansky2c99a102020-05-15 17:38:40 +030054if (JavaVersion.current().isJava11Compatible()) {
55 module('ui/kotlinx-coroutines-javafx')
56}
Roman Elizarov31452902018-04-11 13:58:19 +030057module('ui/kotlinx-coroutines-swing')
58
Vsevolod Tolstopyatovaff82022020-03-10 19:58:36 +030059if (!build_snapshot_train) {
60 module('js/example-frontend-js')
Vsevolod Tolstopyatovaff82022020-03-10 19:58:36 +030061}
dkhalanskyjb36512762020-02-21 17:31:05 +030062
dkhalanskyjb02b403d2020-04-06 16:33:22 +030063module('integration-testing')