Hi! :rat: Im trying to create a really simple kotl...
# javascript
s
Hi! 🐀 Im trying to create a really simple kotlin library that utilizes some of the elements from kotlin/js. I intend to use these libraries in other kotlin/js projects, so i dont think this would be very difficult. Think i got a kotlin/js project that only has a class that takes a string, and outputs the length of it. Are there any resources / examples on how i would have to modify my gradle script to publish a simple artifact to local that i can then use in other kotlin/js projects? Apologies if this is an obvious question, ive looked through the docs for a while but i just cant seem to find anything 😞
a
@Ilya Goncharov [JB] ^^
thank you color 1
i
Hi, if you use
org.jetbrains.kotlin.multiplatform
plugin with JS target, you need to apply
maven-publish
Gradle plugin. Our Kotlin Gradle plugin configure publishing in this case. And just publish. It is not our Kotlin logic, but Gradle common logic, so please follow https://docs.gradle.org/current/userguide/publishing_maven.html