Skip to content

Commit

Permalink
Correct annotations on BootBuildImage's file-based inputs
Browse files Browse the repository at this point in the history
Closes gh-32495
  • Loading branch information
wilkinsona committed Sep 26, 2022
1 parent 33afbcc commit cfac7f5
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -32,8 +32,11 @@
import org.gradle.api.provider.ListProperty;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.Nested;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.PathSensitive;
import org.gradle.api.tasks.PathSensitivity;
import org.gradle.api.tasks.TaskAction;
import org.gradle.api.tasks.options.Option;
import org.gradle.work.DisableCachingByDefault;
Expand Down Expand Up @@ -121,7 +124,8 @@ public BootBuildImage() {
* Returns the property for the archive file from which the image will be built.
* @return the archive file property
*/
@Input
@InputFile
@PathSensitive(PathSensitivity.RELATIVE)
public RegularFileProperty getArchiveFile() {
return this.archiveFile;
}
Expand All @@ -132,7 +136,8 @@ public RegularFileProperty getArchiveFile() {
* @deprecated since 2.5.0 for removal in 2.7.0 in favor of {@link #getArchiveFile()}
*/
@Deprecated
@Input
@InputFile
@PathSensitive(PathSensitivity.RELATIVE)
public RegularFileProperty getJar() {
return this.archiveFile;
}
Expand Down

0 comments on commit cfac7f5

Please sign in to comment.