Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions build/src/org/jetbrains/intellij/build/JewelMavenArtifacts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import org.jetbrains.jps.model.module.JpsModuleDependency
import kotlin.io.path.exists

private const val GROUP_ID: String = "org.jetbrains.jewel"

private val CORE: Map<String, String> = mapOf(
"intellij.platform.jewel.foundation" to "jewel-foundation",
"intellij.platform.jewel.markdown.core" to "jewel-markdown-core",
Expand All @@ -30,7 +31,11 @@ private val CORE: Map<String, String> = mapOf(
"intellij.platform.jewel.markdown.extensions.gfmAlerts" to "jewel-markdown-extensions-gfm-alerts",
"intellij.platform.jewel.markdown.extensions.images" to "jewel-markdown-extensions-images",
)
private val NOT_PUBLISHED: Set<String> = setOf("intellij.platform.jewel.ideLafBridge", "intellij.platform.jewel.markdown.ideLafBridgeStyling")

private val NOT_PUBLISHED: Set<String> = setOf(
"intellij.platform.jewel.ideLafBridge",
"intellij.platform.jewel.markdown.ideLafBridgeStyling",
)

private val transitiveJewelDependencies = mapOf(
"jewel-foundation" to emptySet(),
Expand Down Expand Up @@ -69,9 +74,8 @@ internal object JewelMavenArtifacts {
DependenciesProperties(COMMUNITY_ROOT, jewelProperties).property("jewel.release.version")
}

fun isPublishedJewelModule(module: JpsModule): Boolean {
return module.name.startsWith("intellij.platform.jewel.") && module.name !in NOT_PUBLISHED
}
fun isPublishedJewelModule(module: JpsModule): Boolean =
module.name.startsWith("intellij.platform.jewel.") && module.name !in NOT_PUBLISHED

fun patchCoordinates(module: JpsModule, coordinates: MavenCoordinates): MavenCoordinates {
check(isPublishedJewelModule(module))
Expand Down
Loading