pubref / rules_kotlin

Bazel rules for Kotlin
Other
159 stars 20 forks source link

Feature Request: additional rules to support Kotlin@1.2 multiplatform feature #45

Open qibinlou opened 6 years ago

qibinlou commented 6 years ago

Doc: https://kotlinlang.org/docs/reference/multiplatform.html

I think there is something great we can achieve here to marry the multiplatform feature from Kotlin@1.2 with Bazel to support Write once, Compile everywhere ambition. For example, the workflow of a full stack development would be: 1) write shared business logic libraries in Kotlin 2) write platform-specific backend/microservice code in Kotlin 3) write mobile/desktop/browser client side application logic code in Kotlin 4) bazel test & bazel build

I wonder whether there is anyone at Pubref interested in discussing and experimenting implementation for that? Based on git history, @pcj any thought ^^

pcj commented 6 years ago

Sounds interesting. Would be good to know the specifics of how the gradle multiplatform plugin works.

As a first step, a kotlin_js_library rule would allow people to at least play around with compiling kotlin to js, which has been around for awhile.