Skip to content

Commit

Permalink
try to make generateLombokConfig cacheable
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Jan 6, 2024
1 parent 1b45a07 commit 7d30890
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
*/
@Getter
@Setter
@CacheableTask
public abstract class LombokConfig extends DefaultTask implements LombokTask {

@Inject
Expand Down Expand Up @@ -95,6 +96,7 @@ public LombokConfig() {
getVerbose().convention(false);
getNotMentioned().convention(false);
getOutputs().upToDateWhen(t -> ((LombokConfig) t).getConfigFiles() != null);
getOutputs().doNotCacheIf("Config Imports were used", t -> ((LombokConfig) t).getConfigFiles() == null);
}

@Input
Expand Down

0 comments on commit 7d30890

Please sign in to comment.