Skip to content

No warning when project is build #61

Answered by tbroyer
v-kuzma asked this question in Q&A
Discussion options

You must be logged in to vote

If I understand correctly, this is the expected behavior: without -Werror, warnings do not fail the build, so when rebuilding without code change the task is up-to-date, and warnings aren't displayed. If you use the build cache, the task result is taken from the cache, so again no compilation and no warnings.

This is Gradle's standard behavior for compilation warnings, that'd be the same for, e.g. deprecation warnings.
And with incremental recompilation, you'd also only have warnings for recompiled classes.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@v-kuzma
Comment options

@tbroyer
Comment options

@v-kuzma
Comment options

Answer selected by tbroyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants