diff --git a/docs/src/main/asciidoc/kotlin.adoc b/docs/src/main/asciidoc/kotlin.adoc index 0cb5fc1707cce4..6accdbadb896de 100644 --- a/docs/src/main/asciidoc/kotlin.adoc +++ b/docs/src/main/asciidoc/kotlin.adoc @@ -303,7 +303,28 @@ tasks.withType { <1> The Kotlin plugin version needs to be specified. <2> The all-open configuration required, as per Maven guide above +=== Overriding the Quarkus BOM Kotlin version (Gradle) +If you want to use a different version than the one specified by Quarkus' BOM in your application (for example, to try pre-release features or for compatibility reasons), you can do so by using the `strictly {}` version modifier in your Gradle dependencies. For instance: + +[source,kotlin] +---- +plugins { + id("io.quarkus") + kotlin("jvm") version "1.7.0-Beta" + kotlin("plugin.allopen") version "1.7.0-Beta" +} + +dependencies { + listOf("kotlin-stdlib-jdk8", "kotlin-reflect").forEach { + implementation("org.jetbrains.kotlin:$it") { + version { + strictly("1.7.0-Beta") + } + } + } +} +---- == Live reload