Register KAPT incremental apt cache as local state
This is so that incremental caches are removed on non-incremental task run.
This commit is contained in:
committed by
nataliya.valtman
parent
75e4c74256
commit
093c8bfbb6
+1
-1
@@ -30,7 +30,7 @@ abstract class KaptTask : ConventionTask(), TaskWithLocalState {
|
|||||||
outputs.cacheIf(reason) { useBuildCache }
|
outputs.cacheIf(reason) { useBuildCache }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun localStateDirectories(): FileCollection = objects.fileCollection()
|
override fun localStateDirectories(): FileCollection = objects.fileCollection().from(incAptCache)
|
||||||
|
|
||||||
@get:Internal
|
@get:Internal
|
||||||
@field:Transient
|
@field:Transient
|
||||||
|
|||||||
Reference in New Issue
Block a user