Skip to content

Commit

Permalink
Enable publishing release-specific ui/foundation
Browse files Browse the repository at this point in the history
Since the implementations change between IJP versions, we need to be
able to ship different versions of the dependency for different IJP
versions.

Since this only impacts the bridge, and the user already has to specify
the IJP-specific version of the bridge, and these are only transitive
dependencies, this should be a transparent change for users.
  • Loading branch information
rock3r committed Feb 14, 2024
1 parent 0db5e54 commit ecea61f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/jewel-publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ val javadocJar by tasks.registering(Jar::class) {
publishing {
configureJewelRepositories(project)

val bridgeIjpTarget = project.property("bridge.ijp.target") as String
publications {
register<MavenPublication>("main") {
from(components["kotlin"])
artifact(javadocJar)
artifact(sourcesJar)
version = project.properties["jewel.release.version"] as String
artifactId = "jewel-${project.name}"
artifactId = "jewel-${project.name}-$bridgeIjpTarget"
pom { configureJewelPom() }
}
}
Expand Down
1 change: 1 addition & 0 deletions foundation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.compose.ComposeBuildConfig
plugins {
jewel
`jewel-check-public-api`
`jewel-publish`
alias(libs.plugins.composeDesktop)
}

Expand Down
8 changes: 0 additions & 8 deletions ide-laf-bridge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ plugins {
alias(libs.plugins.composeDesktop)
}

val bridgeIjpTarget = project.property("bridge.ijp.target") as String

dependencies {
api(projects.ui) {
exclude(group = "org.jetbrains.kotlinx")
Expand All @@ -20,9 +18,3 @@ dependencies {
exclude(group = "org.jetbrains.compose.material")
}
}

publishing.publications {
named<MavenPublication>("main") {
artifactId = "jewel-${project.name}-$bridgeIjpTarget"
}
}
1 change: 1 addition & 0 deletions ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.compose.ComposeBuildConfig
plugins {
jewel
`jewel-check-public-api`
`jewel-publish`
alias(libs.plugins.composeDesktop)
alias(libs.plugins.kotlinx.serialization)
}
Expand Down

0 comments on commit ecea61f

Please sign in to comment.