Skip to content

Commit 5124ae9

Browse files
committed
Merge branch '2.6.x' into 2.7.x
Closes spring-projectsgh-32499
2 parents 50040bd + cfac7f5 commit 5124ae9

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImage.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@
3232
import org.gradle.api.provider.ListProperty;
3333
import org.gradle.api.provider.Property;
3434
import org.gradle.api.tasks.Input;
35+
import org.gradle.api.tasks.InputFile;
3536
import org.gradle.api.tasks.Nested;
3637
import org.gradle.api.tasks.Optional;
38+
import org.gradle.api.tasks.PathSensitive;
39+
import org.gradle.api.tasks.PathSensitivity;
3740
import org.gradle.api.tasks.TaskAction;
3841
import org.gradle.api.tasks.options.Option;
3942
import org.gradle.work.DisableCachingByDefault;
@@ -121,7 +124,8 @@ public BootBuildImage() {
121124
* Returns the property for the archive file from which the image will be built.
122125
* @return the archive file property
123126
*/
124-
@Input
127+
@InputFile
128+
@PathSensitive(PathSensitivity.RELATIVE)
125129
public RegularFileProperty getArchiveFile() {
126130
return this.archiveFile;
127131
}

0 commit comments

Comments
 (0)