Skip to content

Commit 0f44e69

Browse files
committed
Merge branch '2.7.x'
Closes spring-projectsgh-32500
2 parents f9b12ca + 5124ae9 commit 0f44e69

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
@@ -31,8 +31,11 @@
3131
import org.gradle.api.provider.ListProperty;
3232
import org.gradle.api.provider.Property;
3333
import org.gradle.api.tasks.Input;
34+
import org.gradle.api.tasks.InputFile;
3435
import org.gradle.api.tasks.Nested;
3536
import org.gradle.api.tasks.Optional;
37+
import org.gradle.api.tasks.PathSensitive;
38+
import org.gradle.api.tasks.PathSensitivity;
3639
import org.gradle.api.tasks.TaskAction;
3740
import org.gradle.api.tasks.options.Option;
3841
import org.gradle.work.DisableCachingByDefault;
@@ -123,7 +126,8 @@ public BootBuildImage() {
123126
* Returns the property for the archive file from which the image will be built.
124127
* @return the archive file property
125128
*/
126-
@Input
129+
@InputFile
130+
@PathSensitive(PathSensitivity.RELATIVE)
127131
public RegularFileProperty getArchiveFile() {
128132
return this.archiveFile;
129133
}

0 commit comments

Comments
 (0)