What's Changed
🎉 New Features
This release contains breaking changes. See the Migration Guide for every change with before/after examples.
✨ New
ClassCriteria,FieldCriteriaandMethodCriteriaselect by name, annotation, type or package. Combine them with.and()/.or(); any ArchUnit predicate works too.Taikai.Builder#excludeClasses(criteria)excludes classes from every rule.- New rules:
methodsShouldReturn/methodsShouldNotReturnmethodsShouldBeAnnotatedWithAll/methodsShouldNotBeAnnotatedWith- naming
methodsShouldNotMatch/fieldsShouldNotMatchwith criteria …ForClassvariants that select members by declaring class
ImportsConfigurerandNamingConfigurercan be disabled.
💥 Breaking changes
- Rules that selected with a
String regexnow take criteria, for exampleClassCriteria.nameMatching(".*Dto"). classesShouldBeAssignableTo/classesShouldImplementused a simple-name suffix. UseClassCriteria.simpleNameMatching(".*Suffix").- Removed the
…AnnotatedWith…,classesAssignableTo…andclassesImplementing…variants. Use the general rule with criteria. - Removed deprecated methods, and renamed
quarkus.ai.namesShouldEndWithAssistantOrResourceto…OrService. classesShouldUseLoggertakes the classes first, andImportPatternsreturns criteria.- Configurers and
TaikaiExceptionarefinal, and the nested configurers' constructors are no longer public.
🐛 Behaviour changes and fixes
annotatedWithcriteria also match meta-annotations, andassignableToexcludes the type itself.shouldBeAnnotatedWithRepository()skips interfaces.- Rules ignore compiler-generated members, and rule descriptions match what they check.
toBuilder()no longer shares excluded classes and rules with the original.
New Contributors
Full Changelog: v1.69.0...v2.0.0