Koltlin 1.3.61 - Multi platform project - Built jar does not have the java source file

I created a multiplatform project using Intellij2019.3.1. It build both java and javascript libraries fine.
When I tried to use the jar file in another java project then I noticed that I could not see the java source code. This keeps me thinking about how kotlin classes are converted to the .jar file.

Does the kotlin classes are directly converted to byte code or is there an intermediate .java file is getting created. If intermediate .java classes are created then what should I add in the build.gradle sothat .java source will be part of the .jar

Kotlin is compiles straight to JVM-bytecode (*.class-files).
A step further, Kotlin tells that decompiling Kotlin to Java-source files is not important for them.

1 Like

Thanks for the reply

You’re welcome.
For the next time, liking only is enough :slight_smile:
Posting means that everyone is notified or told that there is an important change.
Liking only notifies me.