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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -