When trying to publish a JS artifact to a maven re...
# multiplatform
s
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? 🤔
r
Try adding
browser()
or
nodejs()
to your js target
s
It's not working for jvm either u_u sourcesets seem to be messed up somehow..
e
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.
s
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
e
Glad you were able to sort it out. 🙂