Here is an idea which might work for the annotation processing for example. We already have a notion of MetaDataProvider and BeanConfiguration. If we support collection/iterable constraints in this abstraction we could then extract two (Maven) modules, something like a Java7AnnotationMetaDataProvider and Java8AnnotationMetaDataProvider. We could then maybe load the right provider depending on the Java runtime.
|