This message was deleted.
# plugin-development
s
This message was deleted.
e
Hey @Kelvin Chung!
@Internal
is simply ignored.
@LocalState
is ignored for task inputs, but also deleted when the task is loaded from the cache (as explained in the Javadoc). It is useful for tasks that need some "local state" on disk, not part of the outputs, but reused across task executions, and that need to be cleaned up if the task outputs are restored from the cache. An example of this could be incremental compilation state. I hope that helps.
r
So it basically means "don't include this stuff in the build cache?"
e
Not quite. Neither
@Internal
nor
@LocalState
marked properties will be stored in the build cache. The difference is in the behavior for when the state should be cleaned up.