Mixing Kotlin and Java in a single module of a multi-module Maven or Gradle project

twitter logo github logo ・1 min read

Hi,

does anyone have a multi module Maven or Gradle project in production? Basically I'm considering moving SirixDB to Kotlin and to write new classes in Kotlin.

However, I'm not sure. I've used Java from Kotlin but not the other way around. So, would you recommend adding Kotlin to the core module for instance or are there any pitfalls? I think Kotlin is just like a modern Java and I'm a bit resistent to write Java code in my spare time, now that I worked a bit with Kotlin ;-)

Kind regards
Johannes

twitter logo DISCUSS
Classic DEV Post from Feb 10

What should you do after you fail the technical interview?

Asking for a friend, of course... But really. I'm not currently interviewing...

Johannes Lichtenberger profile image
I'm working on an Open Source temporal NoSQL document storage system called SirixDB written in Java (and a module in Kotlin) in my spare time.

DEV is visited by over 2 million software developers per month.

Get Started