Is it possible to use Kotlin as an addition langua...
# announcements
o
Is it possible to use Kotlin as an addition language in huge Java 6 project that uses gradle on top of ant to build it?
n
Gradle runs on the JVM, not on Ant. Kotlin does support Ant as a build system (https://kotlinlang.org/docs/reference/using-ant.html).
Keep in mind that Gradle is the only build system that supports all Kotlin features (eg multi-platform system - https://kotlinlang.org/docs/reference/multiplatform.html ).
Does the "Java 6" project use Ant as a build system?
If Gradle is used as a build system then JRE 7 and above will be required ( https://gradle.org/install/ ).
o
It uses gradle to call ant actually
We are using jvm 1.8 to conpile but write in 1.6
🆗 1
d
I have added 'ad hoc' kotlin files along existing java files in a large monolithic legacy application which is built with gradle (and some parts spawning shell, packer,docker, make ... to build). I dont think in your case build environment will be the issue -- although it can be confusing and inconsistent if you have cross dependencies between kotlin and java source in the same build. I have had very little problem -- barely needing to even glance at the Java Interop features.