diff --git a/ktor-plugins/rsocket-ktor-client/build.gradle.kts b/ktor-plugins/rsocket-ktor-client/build.gradle.kts index ae42e802..2bb9ebc9 100644 --- a/ktor-plugins/rsocket-ktor-client/build.gradle.kts +++ b/ktor-plugins/rsocket-ktor-client/build.gradle.kts @@ -33,3 +33,16 @@ kotlin { } } } + +publishing.publications.withType().configureEach { + val newArtifactId = provider { + artifactId.replace("rsocket-ktor-client", "ktor-client-rsocket") + } + pom { + distributionManagement { + relocation { + artifactId = newArtifactId + } + } + } +} diff --git a/ktor-plugins/rsocket-ktor-server/build.gradle.kts b/ktor-plugins/rsocket-ktor-server/build.gradle.kts index d9cafe4c..32c1a407 100644 --- a/ktor-plugins/rsocket-ktor-server/build.gradle.kts +++ b/ktor-plugins/rsocket-ktor-server/build.gradle.kts @@ -34,3 +34,16 @@ kotlin { } } } + +publishing.publications.withType().configureEach { + val newArtifactId = provider { + artifactId.replace("rsocket-ktor-server", "ktor-server-rsocket") + } + pom { + distributionManagement { + relocation { + artifactId = newArtifactId + } + } + } +}