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

mbonnin

03/26/2020, 1:35 PM
What's the recommended way to publish multiplatform libraries to
bintray
these days ? For regular JVM projects, I'm able to publish with
maven-publish
by using the bintray API and
<https://api.bintray.com/maven/subject/repo/package>
as url but this doesn't work anymore on multiplatform projects since a project (in the gradle meaning) will have multiple packages (in the Bintray meaning), one for each arch.
l

louiscad

03/26/2020, 1:58 PM
Actually, you can have multiple artifactIds in one bintray package. That's how kotlinx.coroutines, Splitties and more are doing. Let me know if you need further help
m

mbonnin

03/26/2020, 1:59 PM
Nice!
What are packages used for then ? 🤷‍♂️
And what happens if 2 files have the same paths in 2 different packages ?
I'm getting this when trying to upload the plugin marker to the plugin package...
Copy code
Could not PUT '<https://api.bintray.com/maven/apollographql/android/apollo-gradle-plugin/;publish=1;override=1/com/apollographql/apollo/com.apollographql.apollo.gradle.plugin/1.4.0/com.apollographql.apollo.gradle.plugin-1.4.0.pom>'. Received status code 409 from server: Conflict
I guess this answers my question about 2 files with the same path in 2 different packages
Works like a charm 👌
I spent so much time keeping track of new packages everytime we added a new module...
THANKS!
l

louiscad

03/26/2020, 3:56 PM
It's something I also discovered on my own that I wish was documented by bintray. As for 409 errors, sometimes, it happens for no reason on bintray and passes after retrying FYI.
1
m

mbonnin

03/26/2020, 3:58 PM
🤷‍♂️
Now I need to merge all the packages in one while still keeping the jcenter sync.
l

louiscad

03/26/2020, 4:00 PM
I wondering if the latter is possible without help from bintray support 🤔
m

mbonnin

03/26/2020, 4:01 PM
Yep, not sure about this either. The support is usually responsive though 🤞
i

ilya.gorbunov

03/26/2020, 9:22 PM
What are packages used for then ?
I believe bintray packages are for grouping artifacs that are published and versioned together.
👍 1
l

louiscad

03/26/2020, 9:35 PM
Ah yes, exactly!
m

mbonnin

04/13/2020, 12:25 AM
For the record, looks like I'm not the first one to having mapped bintray packages to maven publications. Bintray has a "merge" button that does exactly what I want: https://www.jfrog.com/confluence/display/BT/Managing+Uploaded+Content#ManagingUploadedContent-MergingPackages
l

louiscad

04/13/2020, 8:51 AM
Great find!
4 Views