Skip to content

Commit

Permalink
Merge pull request quarkusio#25566 from GavinRay97/patch-5
Browse files Browse the repository at this point in the history
Add doc: how to use custom Kotlin version (Gradle)
  • Loading branch information
glefloch authored Jun 21, 2022
2 parents 87ac519 + 5d4cf75 commit 698b5c6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/src/main/asciidoc/kotlin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,25 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
<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"
}
configurations.all {
resolutionStrategy {
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0-Beta"
force "org.jetbrains.kotlin:kotlin-reflect:1.7.0-Beta"
}
}
----

== Live reload

Expand Down

0 comments on commit 698b5c6

Please sign in to comment.