Run Java to Kotlin converter from the command line?
问题 You can use the Kotlin plug-ins for Intellij and Eclipse to convert Java files to Kotlin. Can this conversion be done from the command line some how without either of these IDEs? 回答1: It seems that it's possible, but there's no tool for that, just code. There are tests in j2k module in Kotlin Github repository, the example below is taken from the tests (AbstractJavaToKotlinConverterSingleFileTest): private fun fileToKotlin(text: String, settings: ConverterSettings, project: Project): String {