This repository was archived by the owner on Feb 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
spring-aot-gradle-plugin/src/main/java/org/springframework/aot/gradle Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,10 @@ public void apply(final Project project) {
135135 project .getPlugins ().withType (SpringBootPlugin .class , springBootPlugin -> {
136136 Provider <RegularFile > generatedSources = generatedSourcesJar .getArchiveFile ();
137137 project .getTasks ().named (SpringBootPlugin .BOOT_JAR_TASK_NAME , BootJar .class , (bootJar ) -> {
138- FileCollection existingClasspath = bootJar .getClasspath ();
139- bootJar .setClasspath (bootJar .getProject ().files (generatedSources , new Object []{existingClasspath != null ? existingClasspath : Collections .emptyList ()}));
138+ bootJar .setClasspath (project .files (generatedSources ).plus (bootJar .getClasspath ()));
140139 });
141140 project .getTasks ().named ("bootRun" , BootRun .class , (bootRun ) -> {
142- FileCollection existingClasspath = bootRun .getClasspath ();
143- bootRun .setClasspath (bootRun .getProject ().files (generatedSources , new Object []{existingClasspath != null ? existingClasspath : Collections .emptyList ()}));
141+ bootRun .setClasspath (project .files (generatedSources ).plus (bootRun .getClasspath ()));
144142 });
145143 });
146144
You can’t perform that action at this time.
0 commit comments