ascheman opened a new pull request, #1086: URL: https://github.com/apache/maven-compiler-plugin/pull/1086
Fixes #1085. Per @desruisseaux's steer on the issue: the full rebuild on any change (when `proc` is unset on JDK < 23) is intentional. Before Java 23 `javac` defaults to `-proc:full` and discovers annotation processors on the compile classpath, and recompiling everything avoids losing processor-generated state (e.g. missed `META-INF/services` registrations). So this keeps the behaviour and documents it instead of changing it. **Changes** - `AbstractCompilerMojo`: clarify the `incrementalCompilation` default-value javadoc — why, on JDK < 23 with `proc` unset, the plugin conservatively assumes a processor may be present, and that setting `proc` to `none` (or an explicit `incrementalCompilation`) restores per-file recompilation. - New IT `incremental-proc-none-per-file`: with `proc=none`, changing one of three independent classes recompiles only that file. This exercises the documented workaround and is green on all JDKs (verified on 21 and 25). Doc + test only; no behavioural change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
