Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.20.0
Description
Description
- Arch Unit Rules for connectors limits dependencies of any classes in connectors on @Public or @PublicEvolving with exceptions of connector package classes, this is not true since we should be able to depend on internal util classes like Preconditions and ExceptionsUtils
freeze( javaClassesThat(resideInAnyPackage(CONNECTOR_PACKAGES)) .and() .areNotAnnotatedWith(Deprecated.class) .should() .onlyDependOnClassesThat( areFlinkClassesThatResideOutsideOfConnectorPackagesAndArePublic() .or( JavaClass.Predicates.resideOutsideOfPackages( "org.apache.flink..")) .or( JavaClass.Predicates.resideInAnyPackage( CONNECTOR_PACKAGES)) ) .as( "Connector production code must depend only on public API when outside of connector packages"));
Attachments
Attachments
Issue Links
- links to