You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImage.java
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,11 @@
32
32
importorg.gradle.api.provider.ListProperty;
33
33
importorg.gradle.api.provider.Property;
34
34
importorg.gradle.api.tasks.Input;
35
+
importorg.gradle.api.tasks.InputFile;
35
36
importorg.gradle.api.tasks.Nested;
36
37
importorg.gradle.api.tasks.Optional;
38
+
importorg.gradle.api.tasks.PathSensitive;
39
+
importorg.gradle.api.tasks.PathSensitivity;
37
40
importorg.gradle.api.tasks.TaskAction;
38
41
importorg.gradle.api.tasks.options.Option;
39
42
importorg.gradle.work.DisableCachingByDefault;
@@ -121,7 +124,8 @@ public BootBuildImage() {
121
124
* Returns the property for the archive file from which the image will be built.
122
125
* @return the archive file property
123
126
*/
124
-
@Input
127
+
@InputFile
128
+
@PathSensitive(PathSensitivity.RELATIVE)
125
129
publicRegularFilePropertygetArchiveFile() {
126
130
returnthis.archiveFile;
127
131
}
@@ -132,7 +136,8 @@ public RegularFileProperty getArchiveFile() {
132
136
* @deprecated since 2.5.0 for removal in 2.7.0 in favor of {@link #getArchiveFile()}
0 commit comments