Thread
#multiplatform
    Shan

    Shan

    2 years ago
    When trying to publish a JS artifact to a maven repository I am getting this error:
    file or directory '/builds/my/org/my-project/src/jsMain/kotlin' not found
    and I cannot see to figure out why.. Anyone have any ideas? 🤔
    russhwolf

    russhwolf

    2 years ago
    Try adding
    browser()
    or
    nodejs()
    to your js target
    Shan

    Shan

    2 years ago
    It's not working for jvm either u_u sourcesets seem to be messed up somehow..
    Eivind Nilsbakken

    Eivind Nilsbakken

    2 years ago
    Is gradle looking for
    buildDir
    at the root of your file system, instead of under
    projectDir
    , or is that just an error in the output? Ie. that leading
    /
    before
    builds
    should not be there, if that's actually where gradle looks.
    Shan

    Shan

    2 years ago
    Turns out the error was with the repository I was trying to upload to, not that the logs said anything of the sort 😔 Build file was fine
    Eivind Nilsbakken

    Eivind Nilsbakken

    2 years ago
    Glad you were able to sort it out. 🙂