how I can pass my kotlin code to someone's java pr...
# announcements
i
how I can pass my kotlin code to someone's java project?
r
You could convert it to Java, or compile it as a library, or add support for Kotlin compilation to the java project
i
how to compile it as a library? or add compilation ?
u
add support for kotlin compilation -> You add the kotlin dependencies
compile it as a library -> You create a normal jar like you would do to distribute anything and pass it to them so they can add it as a dependency
please give me a link, I google that and nothing is help
like pack kotlin code to a jar file and import that file in java?
n
You could use a build tool like maven Create a jar from the Kotlin sources And distribute it
i
yeah, I did that, pack kotlin into a jar, and it crashs in java to use that jar
n
Stacktrace perhaps?