Hey lovely people, I am currently playing with som...
# multiplatform
m
Hey lovely people, I am currently playing with some tools to generate source code...unfortunately they of course do generate Java... The question, which pops up now, is there a converter which can be integrated with Gradle to convert Java to Kotlin?
t
this is what IntelliJ uses for its convert function AFAIK: https://github.com/JetBrains/intellij-community/tree/master/plugins/kotlin/j2k/new
l
Or you can use KotlinPoet to generate Kotlin source code directly: https://github.com/square/kotlinpoet
m
@Tijl Thanks, that helps in way!
t
yeah only in a way, it’s not exactly a transpiler, and it kind of assumes Kotlin/JVM.
m
@Lukasz Kalnik Unfortunately I cannot directly generate Kotlin files, since the tools I use are not controlled by me...so I need to start with a Java file.
👍 1
Maybe the tools change somewhen or there will be a complete transpiler...so I do it for now semi automated