diff --git a/buildSrc/src/main/java/org/springframework/boot/build/KotlinConventions.java b/buildSrc/src/main/java/org/springframework/boot/build/KotlinConventions.java
index 9481f40445..901a5678d7 100644
--- a/buildSrc/src/main/java/org/springframework/boot/build/KotlinConventions.java
+++ b/buildSrc/src/main/java/org/springframework/boot/build/KotlinConventions.java
@@ -30,7 +30,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile;
*
* - {@link KotlinCompile} tasks are configured to:
*
- * - Use {@code apiVersion} and {@code languageVersion} 1.6.
+ *
- Use {@code apiVersion} and {@code languageVersion} 1.7.
*
- Use {@code jvmTarget} 17.
*
- Treat all warnings as errors
*
- Suppress version warnings
@@ -50,8 +50,8 @@ class KotlinConventions {
private void configure(KotlinCompile compile) {
KotlinJvmOptions kotlinOptions = compile.getKotlinOptions();
- kotlinOptions.setApiVersion("1.6");
- kotlinOptions.setLanguageVersion("1.6");
+ kotlinOptions.setApiVersion("1.7");
+ kotlinOptions.setLanguageVersion("1.7");
kotlinOptions.setJvmTarget("17");
kotlinOptions.setAllWarningsAsErrors(true);
List freeCompilerArgs = new ArrayList<>(compile.getKotlinOptions().getFreeCompilerArgs());
diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/kotlin.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/kotlin.adoc
index 321b15e674..1ea42eaa29 100644
--- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/kotlin.adoc
+++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/kotlin.adoc
@@ -13,7 +13,7 @@ Feel free to join the #spring channel of https://slack.kotlinlang.org/[Kotlin Sl
[[features.kotlin.requirements]]
=== Requirements
-Spring Boot requires at least Kotlin 1.6.x and manages a suitable Kotlin version through dependency management.
+Spring Boot requires at least Kotlin 1.7.x and manages a suitable Kotlin version through dependency management.
To use Kotlin, `org.jetbrains.kotlin:kotlin-stdlib` and `org.jetbrains.kotlin:kotlin-reflect` must be present on the classpath.
The `kotlin-stdlib` variants `kotlin-stdlib-jdk7` and `kotlin-stdlib-jdk8` can also be used.