Skip to content

Commit 099e811

Browse files
committed
Raise the minimum supported version of Kotlin to 1.6
Closes gh-29660
1 parent d5f4cfe commit 099e811

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildSrc/src/main/java/org/springframework/boot/build/KotlinConventions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* <ul>
3131
* <li>{@link KotlinCompile} tasks are configured to:
3232
* <ul>
33-
* <li>Use {@code apiVersion} and {@code languageVersion} 1.3.
33+
* <li>Use {@code apiVersion} and {@code languageVersion} 1.6.
3434
* <li>Use {@code jvmTarget} 1.8.
3535
* <li>Treat all warnings as errors
3636
* <li>Suppress version warnings
@@ -50,8 +50,8 @@ void apply(Project project) {
5050

5151
private void configure(KotlinCompile compile) {
5252
KotlinJvmOptions kotlinOptions = compile.getKotlinOptions();
53-
kotlinOptions.setApiVersion("1.3");
54-
kotlinOptions.setLanguageVersion("1.3");
53+
kotlinOptions.setApiVersion("1.6");
54+
kotlinOptions.setLanguageVersion("1.6");
5555
kotlinOptions.setJvmTarget("1.8");
5656
kotlinOptions.setAllWarningsAsErrors(true);
5757
List<String> freeCompilerArgs = new ArrayList<>(compile.getKotlinOptions().getFreeCompilerArgs());

0 commit comments

Comments
 (0)