How can I disable `kotlinMultiplatform` MavenPubli...
# multiplatform
с
How can I disable
kotlinMultiplatform
 MavenPublication? I have a android project :cabinet, that depends on multiplatfom project :cabinetcore through
api project(':cabinetcore')
. When I try to publish :cabinet I've got this error. I don't need
kotlinMultiplatform
publication, only
release
(which is mine publication). How can I disable its automatic creation?
a
Hello, is this thread related? Maybe the final advice from it would help.
с
No, I don't need to remove the task, but I need to remove kotlinMultiplatform MavenPublication
a
You mean removing the dependency on it? Please show the Gradle script you use to depend on this
release
publication.
с
release is mine MavenPublication, and I don't need kotlinMultiplatform, which is automatically added by kotlin plugin
@Artyom Degtyarev [JB] so is there any way to remove kotlinMultiplatform MavenPublication?
a
I asked my teammate yesterday, still waiting for advice.
🙏 1
p
@Artyom Degtyarev [JB] Did you teammate respond with advice already? 😉
😱 1
a
Oh. I’ve made a request, but it has gone lost in time. I’ll try to find some answers tomorrow. Is the problem relevant at all? Maybe it is worth a YouTrack ticket?
p
No I think my issue is different enough; just wanted to check if a possible solution will solve my issue as well
a
Well, I’m still waiting for an answer. 😅 But, from what I can tell based on the code from kotlin repo, this publication will be always created when you have both
kotlin-multiplatform
and
maven-publish
plugins applied. And, as far as I understood while searching for more general solutions, there is no option to remove a declared publication from the project.
112 Views