From bf8c0e169d9a9f0ff3a36b16d35ee1aaf96a3a0a Mon Sep 17 00:00:00 2001 From: nicholasdoglio Date: Sun, 29 Oct 2023 12:58:12 -0400 Subject: [PATCH] Annotate focusFile in ClearFocusTask with InputFile and PathSensitive annotations --- .../src/main/kotlin/com/dropbox/focus/ClearFocusTask.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/focus-gradle-plugin/src/main/kotlin/com/dropbox/focus/ClearFocusTask.kt b/focus-gradle-plugin/src/main/kotlin/com/dropbox/focus/ClearFocusTask.kt index e8a90b3..f1eab98 100644 --- a/focus-gradle-plugin/src/main/kotlin/com/dropbox/focus/ClearFocusTask.kt +++ b/focus-gradle-plugin/src/main/kotlin/com/dropbox/focus/ClearFocusTask.kt @@ -5,13 +5,16 @@ import org.gradle.api.DefaultTask import org.gradle.api.file.RegularFileProperty import org.gradle.api.provider.Provider import org.gradle.api.tasks.CacheableTask -import org.gradle.api.tasks.Input +import org.gradle.api.tasks.InputFile +import org.gradle.api.tasks.PathSensitive +import org.gradle.api.tasks.PathSensitivity import org.gradle.api.tasks.TaskAction @CacheableTask public abstract class ClearFocusTask : DefaultTask() { - @get:Input + @get:PathSensitive(PathSensitivity.RELATIVE) + @get:InputFile public abstract val focusFile: RegularFileProperty @TaskAction