/** * Create the annotation JARs for the input JARs * * @param inputs Task inputs */ @TaskAction public void createAnnotationJars(IncrementalTaskInputs inputs) { if (!inputs.isIncremental()) { for (File file : getAnnotationJars()) { file.delete(); } } inputs.outOfDate(file -> { createAnnotationJar(file.getFile()); }); inputs.removed(file -> { file.getFile().delete(); }); }
/** * Create the annotation JARs for the input JARs * * @param inputs Task inputs */ @TaskAction public void createAnnotationJars(IncrementalTaskInputs inputs) { if (!inputs.isIncremental()) { for (File file : getAnnotationJars()) { file.delete(); } } inputs.outOfDate(file -> { createAnnotationJar(file.getFile()); }); inputs.removed(file -> { file.getFile().delete(); }); }