https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
с

Соловьев Георгий

12/07/2020, 10:29 AM
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

Artyom Degtyarev [JB]

12/07/2020, 12:10 PM
Hello, is this thread related? Maybe the final advice from it would help.
с

Соловьев Георгий

12/07/2020, 12:26 PM
No, I don't need to remove the task, but I need to remove kotlinMultiplatform MavenPublication
a

Artyom Degtyarev [JB]

12/07/2020, 12:36 PM
You mean removing the dependency on it? Please show the Gradle script you use to depend on this
release
publication.
с

Соловьев Георгий

12/07/2020, 12:38 PM
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

Artyom Degtyarev [JB]

12/08/2020, 12:20 PM
I asked my teammate yesterday, still waiting for advice.
🙏 1
p

Paul Woitaschek

02/01/2022, 3:00 PM
@Artyom Degtyarev [JB] Did you teammate respond with advice already? 😉
😱 1
a

Artyom Degtyarev [JB]

02/01/2022, 3:38 PM
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

Paul Woitaschek

02/01/2022, 3:39 PM
No I think my issue is different enough; just wanted to check if a possible solution will solve my issue as well
a

Artyom Degtyarev [JB]

02/03/2022, 1:03 PM
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.
59 Views