Join Slack
Hi! I'm trying to publish a multiplatform library to MavenCentral (via Gradle and `maven-publish`). ...
# build-tools
c
CLOVIS
02/06/2021, 1:01 PM
Hi! I'm trying to publish a multiplatform library to MavenCentral (via Gradle and
maven-publish
). The
Kotlin documentation
states that it's necessary to define an
artifact
block "in the publication's scope". What does that mean exactly? Do you know of an example/open source project that does that?
m
mbonnin
02/06/2021, 1:20 PM
I don't think you need an
artifact
block
. The multiplatform plugin does most of the things by default. You mostly have to configure the pom
mbonnin
02/06/2021, 1:21 PM
This is where we do it:
https://github.com/apollographql/apollo-android/blob/918523736e33185cb5b9cbc9c9d35f311dcdf84e/build.gradle.kts#L89
mbonnin
02/06/2021, 1:22 PM
Most of the code there is to handle android and non-multiplatform modules. The multiplatform should be wayy simpler
mbonnin
02/06/2021, 1:29 PM
Ah, reading that code again, we do have an
artifact
for javadoc so I take that back
2
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by