Skip to content

Commit e62d98e

Browse files
committed
Avoid eager creation of the compile*Kotlin tasks
see https://docs.gradle.org/7.4/userguide/task_configuration_avoidance.html
1 parent d08bda7 commit e62d98e

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/KotlinPluginAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private String getKotlinVersion(Project project) {
4747
}
4848

4949
private void enableJavaParametersOption(Project project) {
50-
project.getTasks().withType(KotlinCompile.class,
50+
project.getTasks().withType(KotlinCompile.class).configureEach(
5151
(compile) -> compile.getKotlinOptions().setJavaParameters(true));
5252
}
5353

0 commit comments

Comments
 (0)