104

java - Is it possible to mix Scala and Kotlin in the same maven module? - Stack...

 6 years ago
source link: https://stackoverflow.com/questions/47380641/is-it-possible-to-mix-scala-and-kotlin-in-the-same-maven-module
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Is it possible to mix Scala and Kotlin in the same maven module?

I am working with Kotlin configured by maven as explained here: https://kotlinlang.org/docs/reference/using-maven.html#compiling-kotlin-and-java-sources (but using only java src dir for both Java and Kotlin files).
We have at work some Scala modules that are configured as explained here: https://dzone.com/articles/scala-in-java-maven-project.

The obvious way of put both maven plugins together did not work. Scala did not recognize Kotlin files.

Is it possible to mix both Java, Kotlin and Scala in one maven module? or is there is a conflict in those maven plugins?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK