From d9ffe4e1ff97b923779c4643deda851858aa0d24 Mon Sep 17 00:00:00 2001 From: Jens Klingenberg Date: Mon, 12 Aug 2024 18:36:42 +0200 Subject: [PATCH] Change artifact name --- ktorfit-converters/call/build.gradle.kts | 13 +++++++++++-- ktorfit-converters/flow/build.gradle.kts | 13 +++++++++++-- ktorfit-converters/response/build.gradle.kts | 13 +++++++++++-- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/ktorfit-converters/call/build.gradle.kts b/ktorfit-converters/call/build.gradle.kts index 324441aeb..5b0dad3f3 100644 --- a/ktorfit-converters/call/build.gradle.kts +++ b/ktorfit-converters/call/build.gradle.kts @@ -21,10 +21,19 @@ licensee { val enableSigning = project.hasProperty("signingInMemoryKey") mavenPublishing { - + val artifactId = + "ktorfit-converters-call" + + if (libs.versions.ktorVersion + .get() + .startsWith("3.") + ) { + "-ktor-" + libs.versions.ktorVersion.get() + } else { + "" + } coordinates( libs.versions.groupId.get(), - "ktorfit-converters-call", + artifactId, libs.versions.ktorfitCallConverter.get(), ) publishToMavenCentral() diff --git a/ktorfit-converters/flow/build.gradle.kts b/ktorfit-converters/flow/build.gradle.kts index 356701ed3..018671392 100644 --- a/ktorfit-converters/flow/build.gradle.kts +++ b/ktorfit-converters/flow/build.gradle.kts @@ -22,10 +22,19 @@ licensee { val enableSigning = project.hasProperty("signingInMemoryKey") mavenPublishing { - + val artifactId = + "ktorfit-converters-flow" + + if (libs.versions.ktorVersion + .get() + .startsWith("3.") + ) { + "-ktor-" + libs.versions.ktorVersion.get() + } else { + "" + } coordinates( libs.versions.groupId.get(), - "ktorfit-converters-flow", + artifactId, libs.versions.ktorfitFlowConverter.get(), ) publishToMavenCentral() diff --git a/ktorfit-converters/response/build.gradle.kts b/ktorfit-converters/response/build.gradle.kts index 5b024ea68..5c51113e1 100644 --- a/ktorfit-converters/response/build.gradle.kts +++ b/ktorfit-converters/response/build.gradle.kts @@ -22,10 +22,19 @@ licensee { val enableSigning = project.hasProperty("signingInMemoryKey") mavenPublishing { - + val artifactId = + "ktorfit-converters-response" + + if (libs.versions.ktorVersion + .get() + .startsWith("3.") + ) { + "-ktor-" + libs.versions.ktorVersion.get() + } else { + "" + } coordinates( libs.versions.groupId.get(), - "ktorfit-converters-response", + artifactId, libs.versions.ktorfitResponseConverter.get(), ) publishToMavenCentral()