https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

Shan

02/12/2020, 12:40 AM
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

russhwolf

02/12/2020, 3:41 AM
Try adding
browser()
or
nodejs()
to your js target
s

Shan

02/12/2020, 5:27 AM
It's not working for jvm either u_u sourcesets seem to be messed up somehow..
e

Eivind Nilsbakken

02/12/2020, 7:57 AM
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

Shan

02/12/2020, 7:59 AM
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

Eivind Nilsbakken

02/12/2020, 8:01 AM
Glad you were able to sort it out. 🙂
3 Views