diff --git a/buildSrc/src/main/kotlin/jewel-publish.gradle.kts b/buildSrc/src/main/kotlin/jewel-publish.gradle.kts index bd5b40ded3..640906a377 100644 --- a/buildSrc/src/main/kotlin/jewel-publish.gradle.kts +++ b/buildSrc/src/main/kotlin/jewel-publish.gradle.kts @@ -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("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() } } } diff --git a/foundation/build.gradle.kts b/foundation/build.gradle.kts index e78a3c6371..c2c90b3fb2 100644 --- a/foundation/build.gradle.kts +++ b/foundation/build.gradle.kts @@ -3,6 +3,7 @@ import org.jetbrains.compose.ComposeBuildConfig plugins { jewel `jewel-check-public-api` + `jewel-publish` alias(libs.plugins.composeDesktop) } diff --git a/ide-laf-bridge/build.gradle.kts b/ide-laf-bridge/build.gradle.kts index 90a55b7a6b..d2fc3ab3c0 100644 --- a/ide-laf-bridge/build.gradle.kts +++ b/ide-laf-bridge/build.gradle.kts @@ -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") @@ -20,9 +18,3 @@ dependencies { exclude(group = "org.jetbrains.compose.material") } } - -publishing.publications { - named("main") { - artifactId = "jewel-${project.name}-$bridgeIjpTarget" - } -} diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts index 382e7d5116..3aa3006e67 100644 --- a/ui/build.gradle.kts +++ b/ui/build.gradle.kts @@ -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) }