Setting up

Kilua applications are built with Gradle. The official Kotlin Multiplatform Gradle plugin is used to manage NPM dependencies, pack bundles (via Webpack) and test the application using Karma. By using Gradle continuous build, you also can get hot module replacement (HMR) feature (apply code changes in the browser on the fly).

Kilua also supports Vite for Kotlin plugin, which uses Vite bundler - a modern and faster alternative to Webpack.

Note

HMR is currently supported only when developing for Kotlin/JS target. For Kotlin/WasmJS you can use simple hot reload.

Requirements

To build a typical Kilua application you should have some tools installed on your machine and available on the system PATH:

  • JDK 21 (required)
  • Git with additional UNIX tools if using Windows (optional, but recommended)
  • GNU xgettext and msgmerge utilities to use internationalization features (optional)

Important

Make sure you are building Kilua applications on the local file system. Issues have been reported when building from network drives or virtual file systems.