I’m trying to upload a multiplatform library to bi...
# multiplatform
j
I’m trying to upload a multiplatform library to bintray, I’m following their doc from the github page :https://github.com/bintray/gradle-bintray-plugin I’m also using kotlin dsl for my build file and I’m not sure what I’m supposed to do for the step 7 :
Copy code
publishing {
    publications {
        MyPublication(MavenPublication) {
            from components.java
            groupId 'org.jfrog.gradle.sample'
            artifactId 'gradle-project'
            version '1.1'
        }
    }
}
Where does
MyPublication
comes from?
I also see there is this specific thing to do : https://kotlinlang.org/docs/reference/mpp-publish-lib.html. Is that still required and how do I link it with the bintray configuration?
m
gradle-bintray-plugin
does not support multiplatform, use plain
maven-publish
Something like this: https://github.com/msink/kotlin-libui/blob/85c680527b6f46818dc879e5126404eba0b40dc1/libui/build.gradle.kts#L85
And even
maven-publish
works only with this workaround:
Copy code
## This a workaround for <https://github.com/gradle/gradle/issues/11412>
systemProp.org.gradle.internal.publish.checksums.insecure=true
j
the gradle.properties workaround is only for bintray or it is necessary for sonatype?
m
For bintray, AFAIK
👍 1