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

Denis Shurygin

07/03/2019, 12:12 PM
Does anybody published MPP library on JCenter as a single package? Currently I have a library for Logs in Bintray maven repository https://bintray.com/beta/#/pocketbyte/maven/hydra-log?tab=files And it works fine if I add following repository "https://dl.bintray.com/pocketbyte/maven/" in
build.gradle
But as I understand, each target is independent package and should be added into JCenter independently. What is the right way to do it?
m

msink

07/03/2019, 12:42 PM
I just pushed "Add to JCenter" button in bintray web-interface, and when receive email - answered that it is Kotlin multiplatform library published from gradle with
enableFeaturePreview("GRADLE_METADATA")
And after an hour or two it appeared on jcenter.
d

Denis Shurygin

07/03/2019, 2:56 PM
Thank you. Sad but linking request was rejected because K/N libraries has no jar/aar files. Explanation that K/N library has another extension not working. 🤪
s

serebit

07/03/2019, 4:49 PM
An easy way around this is to remove all versions, publish only the common and JVM artifacts to your bintray repository, then request the addition to jcenter. Once it's linked, publish the native files. It's cheating, but it worked for me
t

trevjones

07/03/2019, 5:36 PM
I feel like we should get jetbrains and gradle to work with the bintray people to make it smoother to manage
s

serebit

07/03/2019, 5:36 PM
Agreed