Skip to content

Commit

Permalink
Merge pull request #10767 from gradle/wolfs/better-non-incremental-lo…
Browse files Browse the repository at this point in the history
…gging

Reword logging when changes require rebuild
  • Loading branch information
wolfs committed Sep 18, 2019
2 parents 63761fe + d77805a commit 8ce93b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -84,7 +84,7 @@ private InputChangesInternal determineInputChanges(UnitOfWork work, IncrementalC
ExecutionStateChanges changes = context.getChanges().get();
InputChangesInternal inputChanges = changes.createInputChanges();
if (!inputChanges.isIncremental()) {
LOGGER.info("All input files are considered out-of-date for incremental {}.", work.getDisplayName());
LOGGER.info("The input changes require a full rebuild for incremental {}.", work.getDisplayName());
}
return inputChanges;
}
Expand Down
Expand Up @@ -93,6 +93,7 @@ class UnknownIncrementalAnnotationProcessingIntegrationTest extends AbstractIncr
outputs.deletedClasses("AThing")

and:
output.contains("Input property 'options.annotationProcessorPath' file ${file("annotation/build/libs/annotation.jar").absolutePath} has been removed")
outputContains("Input property 'options.annotationProcessorPath' file ${file("annotation/build/libs/annotation.jar").absolutePath} has been removed")
outputContains("The input changes require a full rebuild for incremental task ':compileJava'")
}
}

0 comments on commit 8ce93b0

Please sign in to comment.