mbonnin

    mbonnin

    2 years ago
    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.
    louiscad

    louiscad

    2 years ago
    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
    mbonnin

    mbonnin

    2 years ago
    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...
    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!
    louiscad

    louiscad

    2 years ago
    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.
    mbonnin

    mbonnin

    2 years ago
    🤷‍♂️
    Now I need to merge all the packages in one while still keeping the jcenter sync.
    louiscad

    louiscad

    2 years ago
    I wondering if the latter is possible without help from bintray support 🤔
    mbonnin

    mbonnin

    2 years ago
    Yep, not sure about this either. The support is usually responsive though 🤞
    ilya.gorbunov

    ilya.gorbunov

    2 years ago
    What are packages used for then ?
    I believe bintray packages are for grouping artifacs that are published and versioned together.
    louiscad

    louiscad

    2 years ago
    Ah yes, exactly!
    mbonnin

    mbonnin

    2 years ago
    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
    louiscad

    louiscad

    2 years ago
    Great find!