• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 @file:JvmName("Projects")
5 import org.gradle.api.*
6 
Projectnull7 fun Project.version(target: String): String =
8     property("${target}_version") as String
9 
10 val coreModule = "kotlinx-coroutines-core"
11 val testModule = "kotlinx-coroutines-test"
12 
13 val multiplatform = setOf(coreModule, testModule)
14 // Not applicable for Kotlin plugin
15 val sourceless = setOf("kotlinx.coroutines", "kotlinx-coroutines-bom")
16 val internal = setOf("kotlinx.coroutines", "benchmarks")
17 // Not published
18 val unpublished = internal + setOf("example-frontend-js", "android-unit-tests")
19 
20 val Project.isMultiplatform: Boolean get() = name in multiplatform
21 
22 // Projects that we do not check for Android API level 14 check due to various limitations
23 val androidNonCompatibleProjects = setOf(
24     "kotlinx-coroutines-debug",
25     "kotlinx-coroutines-swing",
26     "kotlinx-coroutines-javafx",
27     "kotlinx-coroutines-jdk8",
28     "kotlinx-coroutines-jdk9",
29     "kotlinx-coroutines-reactor",
30     "kotlinx-coroutines-test"
31 )
32