Skip to content

Commit

Permalink
Augment upgrading guide for Kotlin Gradle Plugin 1.8
Browse files Browse the repository at this point in the history
with recommendations that appear to become frequently asked questions
  • Loading branch information
eskatos committed Feb 22, 2023
1 parent 5704be9 commit 4024636
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ java {
Gradle 7.x supports Kotlin Gradle Plugin 1.3.72 and above.
Kotlin Gradle Plugin versions above 1.6.21 are not tested with Gradle 7.x.
Gradle 8.x supports Kotlin Gradle Plugin 1.6.10 and above.
You can use a lower Kotlin language version by modifying the language version and api version setting in the Kotlin `compile` task.
You can use a lower Kotlin language version by modifying the language version and api version setting in the Kotlin compilation tasks.

==== Minimal supported Android Gradle Plugin version changed
Gradle 7.x supports Android Gradle Plugin (AGP) 4.1 and above.
Expand Down Expand Up @@ -634,6 +634,12 @@ For information about breaking and nonbreaking changes in this upgrade, see the
* Kotlin 1.7 link:https://kotlinlang.org/docs/whatsnew17.html#language[language] / link:https://kotlinlang.org/docs/whatsnew17.html#standard-library[standard library]
* Kotlin 1.8 link:https://kotlinlang.org/docs/whatsnew18.html#language[language] / link:https://kotlinlang.org/docs/whatsnew18.html#standard-library[standard library]

Note that the Kotlin Gradle Plugin 1.8.0 started using Java toolchains.
It is recommended you configure a toolchain instead of defining Java `sourceCompatibility`/`targetCompatibility` in Kotlin projects.

Also note that the Kotlin Gradle Plugin 1.8.0 introduced `compilerOptions` with lazy configuration properties as a replacement for `kotlinOptions` which did not support lazy configuration.
It is recommended you configure Kotlin compilation using `compilerOptions` instead of `kotlinOptions`.

[[kotlin_dsl_plugin_toolchains]]
==== `kotlinDslPluginOptions.jvmTarget` is deprecated

Expand Down

0 comments on commit 4024636

Please sign in to comment.