ppkarwasz opened a new pull request, #2172: URL: https://github.com/apache/logging-log4j2/pull/2172
**Remark**: the target of this PR is a feature branch. Plugin annotations are employed by `log4j-docgen` to generate documentation (cf. #1956) Since the tool is compiled using Java 8 bytecode, we need to split `log4j-plugins` into: * an API part that contains mostly annotations and interfaces, * an implementation part that can use all the improvements of Java 17. In this PR: * we move the constraint annotation into a new artifact, * we make the `value` property of the `@Constraint` annotation optional, * we introduce a `ConstraintValidatorFactory` that produces the appropriate `ConstraintValidator` for each annotation. This way we don't need to reference `ConstraintValidator` implementations in the constraint annotations. * we add the `2.x` constraint annotations that were lost in `main`. This PR leaves the `o.a.l.l.plugins` package split between two artifacts, so it can not be merged to `main`. -- 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: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org