TNG / ArchUnit

A Java architecture test library, to specify and assert architecture rules in plain Java
http://archunit.org
Apache License 2.0
3.19k stars 289 forks source link

Consider Jakarta EE9 injection annotations for general coding rule #1286

Closed hankem closed 5 months ago

hankem commented 6 months ago

The condition BE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION and the rule NO_CLASSES_SHOULD_USE_FIELD_INJECTION previously considered the javax.inject.Inject and javax.annotation.Resource annotations, but not their jakarta variants (jakarta.inject.Inject and jakarta.annotation.Resource).

Resolves: #1285