forked from Kotlin/kotlinx.coroutines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Projects.kt
20 lines (16 loc) · 770 Bytes
/
Projects.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@file:JvmName("Projects")
import org.gradle.api.Project
fun Project.version(target: String): String =
property("${target}_version") as String
val coreModule = "kotlinx-coroutines-core"
val testModule = "kotlinx-coroutines-test"
val multiplatform = setOf(coreModule, testModule)
// Not applicable for Kotlin plugin
val sourceless = setOf("kotlinx.coroutines", "kotlinx-coroutines-bom", "integration-testing")
val internal = setOf("kotlinx.coroutines", "benchmarks", "integration-testing")
// Not published
val unpublished = internal + setOf("example-frontend-js", "android-unit-tests")
val Project.isMultiplatform: Boolean get() = name in multiplatform