
= Building Kotlin with Mill
:page-aliases: Kotlin_Intro_to_Mill.adoc
:language: Kotlin
:language-small: kotlin
:language-ext: kt
:compat-module: KotlinMavenModule
:compat-test-module: KotlinMavenTests

include::partial$Intro_Header.adoc[]

== Declarative Configuration

include::partial$example/kotlinlib/basic/3-simple.adoc[]

=== Multi-Module Projects

include::partial$example/kotlinlib/basic/4-module-deps.adoc[]

=== Maven Compatible Modules

include::partial$example/kotlinlib/basic/5-compat-modules.adoc[]

== Single-File Scripts

include::partial$example/kotlinlib/basic/1-script.adoc[]

== Programmable Configuration

include::partial$example/kotlinlib/basic/6-programmable.adoc[]

=== Custom Build Logic

include::partial$example/kotlinlib/basic/7-custom-build-logic.adoc[]

=== Programmable Multi-Module Project

include::partial$example/kotlinlib/basic/8-multi-module.adoc[]

=== Programmable Compatibility Modules

include::partial$example/kotlinlib/basic/9-programmable-compat.adoc[]

== Realistic Kotlin Example Project

include::partial$example/kotlinlib/basic/10-realistic.adoc[]


== History

Mill's Kotlin support originated as the third-party plugin
https://github.com/lefou/mill-kotlin[lefou/mill-kotlin], which was later included with
the main Mill codebase under its
https://github.com/lefou/mill-kotlin/blob/main/LICENSE[Apache 2.0 License].
