Multiplateform lib to targetkotlin

Hello, I have a multiplateform project build with the multi kotlin plateform gradle plugin.
I try to build libs who will be used by other object. Thoses lib are 100% kotlin, no extern dependency.

I target jvm and js … , but I want to be able also to use this libs in the common part of other multiplateform project. In other way, I also need to target uncompiled kotlin.

How do I do that?

Multiplatform Kotlin works (for now) such that modules will need to support specified platforms (and will be compiled to those). There is for now no standard way to have source distribution of multiplatform modules. You can still publish the common jar and that will allow a common module in another project to make use of it, but the common jar only contains interface definitions.