[kotlin] Publish cooperative development mode artifacts compatible with Bazel build in IntelliJ

^KT-80717 Fixed

GitOrigin-RevId: 25e62714ffb47dad6936e29b05c5f1842111eb9d
This commit is contained in:
Yan Zhulanow
2025-09-10 06:51:57 +00:00
committed by intellij-monorepo-bot
parent 6d4356f225
commit 169f7c92fd
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -1 +1,2 @@
/snapshots
/snapshots
/kotlin-snapshot
@@ -158,7 +158,10 @@ private fun JpsLibrary.convertMavenUrlToCooperativeIfNeeded(artifactsMode: Artif
fun convertUrl(url: JpsUrl): JpsUrl {
return when (url.path) {
is JpsPath.ProjectDir -> url
is JpsPath.MavenRepository -> JpsUrl.Jar(JpsPath.ProjectDir("../build/repo/${url.path.relativePath}", isCommunity))
is JpsPath.MavenRepository -> {
val snapshotDirectoryPath = "lib/kotlin-snapshot"
JpsUrl.Jar(JpsPath.ProjectDir("$snapshotDirectoryPath/${url.path.relativePath}", isCommunity))
}
}
}