From 5cab6fd6cf430fb91128e5dbdce7a2936f7b449d Mon Sep 17 00:00:00 2001 From: Ivan Gavrilovic Date: Fri, 21 Jun 2019 02:08:57 +0900 Subject: [PATCH] KAPT: Mark incremental cache as LocalState Use @LocalState to mark incremental annotation processing cache directory. This is to make sure this is not stored in the build cache as it contains absolute paths and cannot be shared between machines. --- .../org/jetbrains/kotlin/gradle/internal/kapt/KaptTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptTask.kt b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptTask.kt index 3010a3dd6fe..1c88ba5043b 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptTask.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptTask.kt @@ -58,7 +58,7 @@ abstract class KaptTask : ConventionTask(), TaskWithLocalState { internal var classpathStructure: FileCollection? = null /** Output directory that contains caches necessary to support incremental annotation processing. */ - @get:OutputDirectory + @get:LocalState @get:Optional var incAptCache: File? = null