When we use TestCompiler with -Werror and that a warning has been triggered, we get the following detail:
org.springframework.core.test.tools.CompilationException: Unable to compile source
warnings found and -Werror specified
We should record the warnings and log them, or perhaps offer a way to always log them.