diff options
author | Ting-Yuan Huang <laszio@google.com> | 2021-09-14 17:35:38 -0700 |
---|---|---|
committer | laszio <ting-yuan@users.noreply.github.com> | 2021-10-15 14:11:57 -0700 |
commit | 14d4a0409de5d6e1625dd1227c884a99dc45b77e (patch) | |
tree | 1aa1b39ca304bad69499e9e32e98865cab37a2cc /gradle-plugin | |
parent | 4f829364524aadf68c174a2b5ff97fad5df6259d (diff) | |
download | ksp-14d4a0409de5d6e1625dd1227c884a99dc45b77e.tar.gz |
gradle-plugin: Update overly conservative input annotations
Classpath implies PathSensitive(PathSensitivity.RELATIVE)
Diffstat (limited to 'gradle-plugin')
-rw-r--r-- | gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt | 10 |
1 files changed, 2 insertions, 8 deletions
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<FileCollection> @get:Input @@ -394,12 +393,7 @@ interface KspTask : Task { @get:Input val apOptions: MapProperty<String, String> - // @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 /** |