# Kotlin, Groovy and Java Compilation

**URL:** <https://discuss.gradle.org/t/kotlin-groovy-and-java-compilation/14903>\
**Category:** Help/Discuss\
**Created:** [March 3, 2016, 3:27am UTC](https://discuss.gradle.org/t/kotlin-groovy-and-java-compilation/14903 "2016-03-03T03:27:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![st\_oehme](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/st_oehme/32/5249_2.png) [@st\_oehme](https://discuss.gradle.org/u/st_oehme)\
**Post date:** [March 3, 2016, 1:08pm UTC](https://discuss.gradle.org/t/kotlin-groovy-and-java-compilation/14903/2 "2016-03-03T13:08:27Z")

</div>

The only way to get joint compilation across JVM languages would be if every language supported an explicit stubbing mechanism. This is not the case, so joint compilation of Groovy and Kotlin is not possible

- you can jointly compile Groovy and Java
- you can jointly compile Kotlin and Java
- you can serially compile any combination (but that means dependencies can only go in one direction, e.g. Java \< Groovy \< Kotlin)

If you want an honest opinion: Don’t create a tower of babel. Stick to one alternative general-purpose language per project.

---

_[View the full topic](https://discuss.gradle.org/t/kotlin-groovy-and-java-compilation/14903)._
