From 14d4a0409de5d6e1625dd1227c884a99dc45b77e Mon Sep 17 00:00:00 2001 From: Ting-Yuan Huang Date: Tue, 14 Sep 2021 17:35:38 -0700 Subject: gradle-plugin: Update overly conservative input annotations Classpath implies PathSensitive(PathSensitivity.RELATIVE) --- .../main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gradle-plugin') diff --git a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt index 76743a52..52a93782 100644 --- a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt +++ b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt @@ -384,8 +384,7 @@ interface KspTask : Task { var destination: File @get:Optional - @get:PathSensitive(PathSensitivity.RELATIVE) - @get:InputFiles + @get:Classpath val overridePluginClasspath: Property @get:Input @@ -394,12 +393,7 @@ interface KspTask : Task { @get:Input val apOptions: MapProperty - // @PathSensitive and @Classpath doesn't seem working together. Effectively, we are forced to choose between - // 1. remote cache, or - // 2. detecting trivial changes in processors. - // Only processor authors need 2. so let's favor 1. for broader audience. - @get:PathSensitive(PathSensitivity.RELATIVE) - @get:InputFiles + @get:Classpath val processorClasspath: ConfigurableFileCollection /** -- cgit v1.2.3