From f87012b9c7feeed50d8cb3895f0dec9e25064e79 Mon Sep 17 00:00:00 2001 From: Oleg Yukhnevich Date: Fri, 7 Mar 2025 00:39:46 +0200 Subject: [PATCH] Setup relocations of ktor artifacts, so that they could be safely dropped in future --- ktor-plugins/rsocket-ktor-client/build.gradle.kts | 13 +++++++++++++ ktor-plugins/rsocket-ktor-server/build.gradle.kts | 13 +++++++++++++ 2 files changed, 26 insertions(+) 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 + } + } + } +}