How to create a library in Kotlin and use it from projects that target javascript or java? -
i looking @ how can create common library used both front-end , back-end codebases. i'd able create library written purely in kotlin, compile it, , register said artifact(s) imported dependencies both js (using npm) , kotlin-java (using maven). workflow supported or possible? if so, approaches doing so?
when using gradle instead of using compile ...kotlin-stdlib-jre8
(or other jre
) use compile ...kotlin-stdlib
. should enough though remember not use java-only features (such of reflection features) won't work when using javascript
Comments
Post a Comment