libgdx / gdx-liftoff

A modern setup tool for libGDX Gradle projects
Apache License 2.0
544 stars 50 forks source link

HTML | Kotlin - not working #210

Open Vladislav-Shesternin opened 1 day ago

Vladislav-Shesternin commented 1 day ago

When I create a project for HTML5 and select Kotlin, a src.main.kotlin folder is created, but it doesn't matter because there are no dependencies for Kotlin in build.gradle, so it doesn't work and I have to write only in Java.

SonicGDX commented 7 hours ago

I think the HTML GWT backend unfortunately doesn't support other JVM languages, as IIRC GWT transpiles from Java source code instead of bytecode. However, the HTML TeaVM backend uses the latter and should work with Kotlin.

I think it would be good if the description of the HTML backend in liftoff could mention this.