Add kotlinx-coroutines-core dependency to JPS builders

Included kotlinx-coroutines-core in BUILD.bazel, IntelliJ module dependencies, and classpath setup to allow its usage in JPS builders.

GitOrigin-RevId: 0318f27a154d80ec7fb17ae26ddcb78d29853f88
This commit is contained in:
Dmitry.Yudin
2025-05-22 13:13:56 +02:00
committed by intellij-monorepo-bot
parent 3ca9b7891b
commit 437e8c8cab
4 changed files with 5 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ suspend fun buildCommunityStandaloneJpsBuilder(targetDir: Path,
"jps-javac-extension",
"fastutil-min",
"kotlin-stdlib",
"kotlinx-coroutines-core",
"commons-lang3",
"maven-resolver-provider",
"aalto-xml",

View File

@@ -46,6 +46,7 @@ jvm_library(
"@lib//:maven-resolver-provider",
"@lib//:http-client",
"@lib//:kotlin-metadata",
"@lib//:kotlinx-coroutines-core",
],
exports = [
"@lib//:maven-resolver-provider",

View File

@@ -76,5 +76,6 @@
<orderEntry type="library" exported="" name="maven-resolver-provider" level="project" />
<orderEntry type="library" exported="" name="http-client" level="project" />
<orderEntry type="library" name="kotlin-metadata" level="project" />
<orderEntry type="library" name="kotlinx-coroutines-core" level="project" />
</component>
</module>

View File

@@ -22,6 +22,7 @@ import com.intellij.util.lang.JavaVersion;
import com.jgoodies.forms.layout.CellConstraints;
import com.thoughtworks.qdox.JavaProjectBuilder;
import kotlin.metadata.jvm.JvmMetadataUtil;
import kotlinx.coroutines.Deferred;
import net.n3.nanoxml.IXMLBuilder;
import org.h2.mvstore.MVStore;
import org.jetbrains.annotations.ApiStatus;
@@ -166,6 +167,7 @@ public final class ClasspathBootstrap {
addToClassPath(cp, HashMapZipFile.class); // intellij.platform.util.zip
ClassPathUtil.addKotlinStdlib(cp);
addToClassPath(cp, Deferred.class); // kotlinx.coroutines, used intellij.platform.util, EnvironmentUtil
addToClassPath(cp, JvmMetadataUtil.class); // kotlin metadata parsing
addToClassPath(cp, COMMON_REQUIRED_CLASSES);
getNettyForJpsClasspath(path -> cp.add(path.toString()));