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 0d715bde84e..55e2bd99e57 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.3.
+ *
- Use {@code apiVersion} and {@code languageVersion} 1.6.
*
- Use {@code jvmTarget} 1.8.
*
- 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.3");
- kotlinOptions.setLanguageVersion("1.3");
+ kotlinOptions.setApiVersion("1.6");
+ kotlinOptions.setLanguageVersion("1.6");
kotlinOptions.setJvmTarget("1.8");
kotlinOptions.setAllWarningsAsErrors(true);
List freeCompilerArgs = new ArrayList<>(compile.getKotlinOptions().getFreeCompilerArgs());