Skip to content

Commit 33a6735

Browse files
authored
Setup relocations of ktor artifacts, so that they could be safely dropped in future (#292)
1 parent 76c8790 commit 33a6735

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

ktor-plugins/rsocket-ktor-client/build.gradle.kts

+13
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ kotlin {
3333
}
3434
}
3535
}
36+
37+
publishing.publications.withType<MavenPublication>().configureEach {
38+
val newArtifactId = provider {
39+
artifactId.replace("rsocket-ktor-client", "ktor-client-rsocket")
40+
}
41+
pom {
42+
distributionManagement {
43+
relocation {
44+
artifactId = newArtifactId
45+
}
46+
}
47+
}
48+
}

ktor-plugins/rsocket-ktor-server/build.gradle.kts

+13
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,16 @@ kotlin {
3434
}
3535
}
3636
}
37+
38+
publishing.publications.withType<MavenPublication>().configureEach {
39+
val newArtifactId = provider {
40+
artifactId.replace("rsocket-ktor-server", "ktor-server-rsocket")
41+
}
42+
pom {
43+
distributionManagement {
44+
relocation {
45+
artifactId = newArtifactId
46+
}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)