Hello, Anyone can share how to publish kotlin mul...
# announcements
v
Hello, Anyone can share how to publish kotlin multiplatform. Currently my implementation focused on jvm target and i want to publish it on bintray. And im using gradle kotlin dsl No success atm. Any help would be appreciated
this is my setting on gradle kts
Copy code
publishing {
    publications {
        create<MavenPublication>("kotlin-proj") {
            pom {
                name.set("My Library")
                description.set("A concise description of my library")
                url.set("<http://www.example.com/library>")
                properties.set(mapOf(
                    "myProp" to "value",
                    "prop.with.dots" to "anotherValue"
                ))
                licenses {
                    license {
                        name.set("The Apache License, Version 2.0")
                        url.set("<http://www.apache.org/licenses/LICENSE-2.0.txt>")
                    }
                }
                developers {
                    developer {
                        id.set("johnd")
                        name.set("John Doe")
                        email.set("<mailto:john.doe@example.com|john.doe@example.com>")
                    }
                }
                scm {
                    connection.set("scm:git:<git://example.com/my-library.git%22|git://example.com/my-library.git">)
                    developerConnection.set("scm:git:<ssh://example.com/my-library.git%22|ssh://example.com/my-library.git">)
                    url.set("<http://example.com/my-library/>")
                }
            }
        }
    }
}
Copy code
bintray {
    user = "user"
    key = "key

    pkg(delegateClosureOf<BintrayExtension.PackageConfig> {
        repo = "libraries"
        name = "kotlin-proj"
        userOrg = "userx123"
        setPublications("kotlin-proj")
    })
}
when i execute
gradle bintrayUpload
it was only uploading pom.xml and not my jar file. What am I missing here? I read about
fileSpec
but dont know how to use it in gradle kts. can someone help me out on this?