Laxystem
02/11/2024, 8:13 PMquest.laxla.gimli:client
for the :api:client
module, and I would like to create quest.laxla.gimli:api.client
instead.Adam S
02/11/2024, 8:38 PMpublishing {
publications.withType<MavenPublication>().configureEach {
// customise artifact ID, but this is probably buggy!
artifactId = "..."
}
}
but it'll be tricky because there are multiple publications for KMP.
The most robust way is to rename the subproject to api.client
.Laxystem
02/12/2024, 7:08 AM-jvm
part, right?
So I could just do, artifactId = "api-client" + artifactId.removePrefix(project.name)
Laxystem
02/12/2024, 7:09 AM:api:common
module to :api
tho, so that I won't have api-common-common
.
Or wait, does the common publication even have a suffix?Adam S
02/12/2024, 9:20 AMSo I could just do,possibly.... but it depends in what order that modification gets applied. It can get really tricky trying to modify the artifact IDartifactId = "api-client" + artifactId.removePrefix(project.name)
Adam S
02/12/2024, 9:23 AMOr wait, does the common publication even have a suffix?No, it shouldn't do (e.g kotest-common)
Adam S
02/12/2024, 9:24 AMLaxystem
02/12/2024, 10:21 AMLaxystem
02/13/2024, 12:08 AM"util"()
"api" {
"client"()
"common"()
"server"()
}